Added some debugging code

This commit is contained in:
Michiel Broek 2004-08-08 10:17:49 +00:00
parent 90a0614a7f
commit 943e8ff92d

View File

@ -1142,6 +1142,7 @@ int AreaMgr(faddr *f, faddr *t, char *replyid, char *subj, time_t mdate, int fla
fseek(tmp, 0, SEEK_SET); fseek(tmp, 0, SEEK_SET);
while ((fgets(Buf, MAX_LINE_LENGTH, tmp)) != NULL) { while ((fgets(Buf, MAX_LINE_LENGTH, tmp)) != NULL) {
Syslogp('-', printable(Buf, 0));
while ((Buf[strlen(Buf) - 1]=='\n') || (Buf[strlen(Buf) - 1]=='\r')) { while ((Buf[strlen(Buf) - 1]=='\n') || (Buf[strlen(Buf) - 1]=='\r')) {
Buf[strlen(Buf) - 1] = '\0'; Buf[strlen(Buf) - 1] = '\0';
} }