From a866d734e509c20fd25dc77680b1724fef92dace Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 14 Jul 2002 13:52:33 +0000 Subject: [PATCH] Small fixes again --- mbsetup/m_marea.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mbsetup/m_marea.c b/mbsetup/m_marea.c index 5fcbf1f2..deab00a6 100644 --- a/mbsetup/m_marea.c +++ b/mbsetup/m_marea.c @@ -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,7 +1176,8 @@ int EditMsgRec(int Area) } } fclose(fil); - Syslog('+', "Updated %d paths in %s", i, temp); + if (i) + Syslog('+', "Updated %d paths in %s", i, temp); } i = 0; @@ -1194,7 +1194,8 @@ int EditMsgRec(int Area) fseek(fil, newfileshdr.grpsize, SEEK_CUR); } fclose(fil); - Syslog('+', "Updated %d paths in %s", i, temp); + if (i) + Syslog('+', "Updated %d paths in %s", i, temp); } free(temp); Forced = TRUE;