Small fixes again

This commit is contained in:
Michiel Broek 2002-07-14 13:52:33 +00:00
parent 0fac0fcdb5
commit a866d734e5

View File

@ -1156,7 +1156,6 @@ int EditMsgRec(int Area)
case 5: sprintf(oldpath, "%s", msgs.Base);
strcpy(msgs.Base, edit_jam(10,16,64,msgs.Base ,(char *)"The path to the ^JAM Message Base^"));
if (strcmp(oldpath, msgs.Base)) {
Syslog('+', "JAM path changed");
i = 0;
temp = calloc(PATH_MAX, sizeof(char));
sprintf(temp, "%s/etc/scanmgr.data", getenv("MBSE_ROOT"));
@ -1177,6 +1176,7 @@ int EditMsgRec(int Area)
}
}
fclose(fil);
if (i)
Syslog('+', "Updated %d paths in %s", i, temp);
}
@ -1194,6 +1194,7 @@ int EditMsgRec(int Area)
fseek(fil, newfileshdr.grpsize, SEEK_CUR);
}
fclose(fil);
if (i)
Syslog('+', "Updated %d paths in %s", i, temp);
}
free(temp);