From 2827ec55b6a91badba0cc15eeb74f0dedb140690 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 9 Mar 2004 15:16:47 +0000 Subject: [PATCH] Deal with apparent C library bug. --- linebyline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linebyline.c b/linebyline.c index 855c071..795b9ce 100644 --- a/linebyline.c +++ b/linebyline.c @@ -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, ", ")) -- 2.43.0