]> code.citadel.org Git - citadel.git/commitdiff
Fixed another bug. This version actually works. :)
authorArt Cancro <ajc@citadel.org>
Sun, 12 Jul 1998 21:52:12 +0000 (21:52 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 12 Jul 1998 21:52:12 +0000 (21:52 +0000)
citadel/readlog.c

index 96e78d7c8f1a65a3970d737c35624d4b4c29408a..2bd217e4a152c910808690c4bf31aca45db58afa 100644 (file)
@@ -44,12 +44,9 @@ main (argc, argv)
        {
          buf[strlen (buf) - 1] = 0;
 
-         LogTime = atol (buf);
-         strcpy (buf, index (buf, '|'));
-         LogType = atoi (buf);
-         strcpy (buf, index (buf, '|'));
-         strcpy (LogName, buf);
-
+         LogTime = atol (strtok(buf, "|"));
+          LogType = atol (strtok(NULL, "|"));
+          strcpy(LogName, strtok(NULL, "|"));
 
          if (LogType != 0)
            {