readlog.c: small patch to prevent core dumps when reading certain records
authorArt Cancro <ajc@citadel.org>
Thu, 3 Sep 1998 15:01:41 +0000 (15:01 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 3 Sep 1998 15:01:41 +0000 (15:01 +0000)
citadel/readlog.c

index a518f25c6a8da39a063b59557ce070641043e047..df90761139e964db8f4864d691faf463752911dd 100644 (file)
@@ -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, "|"));