From: Art Cancro Date: Thu, 3 Sep 1998 15:01:41 +0000 (+0000) Subject: readlog.c: small patch to prevent core dumps when reading certain records X-Git-Tag: v7.86~8364 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=19696f22b4bd6585c582e59e98e2b4882d95165c;p=citadel.git readlog.c: small patch to prevent core dumps when reading certain records --- diff --git a/citadel/readlog.c b/citadel/readlog.c index a518f25c6..df9076113 100644 --- a/citadel/readlog.c +++ b/citadel/readlog.c @@ -40,6 +40,7 @@ main (int argc, char **argv) while (fgets (buf, 256, logfp) != NULL) { buf[strlen (buf) - 1] = 0; + strcat(buf, " "); LogTime = atol (strtok(buf, "|")); LogType = atol (strtok(NULL, "|"));