]> thyrsus.com Git - comparator.git/commitdiff
Deal with apparent C library bug.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 9 Mar 2004 15:16:47 +0000 (15:16 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 9 Mar 2004 15:16:47 +0000 (15:16 +0000)
linebyline.c

index 855c071579881e696d65d5d994e9bd0f1a5fa42a..795b9ceac5c12a03c788bee477e10fc7ff635392 100644 (file)
@@ -75,7 +75,7 @@ int analyzer_init(unsigned char *buf)
            exit(1);
        }
 
-    cp = strtok(buf, ", ");
+    cp = strtok(strdup(buf), ", ");
     if (strcmp(cp, "line-oriented"))
        return(1);
     while (cp = strtok(NULL, ", "))