From: Daniel Stenberg <daniel@haxx.se> Date: Sun, 26 Aug 2001 14:27:07 +0000 (+0000) Subject: Added #include <string.h> and removed a silly mistakenly added , X-Git-Tag: before_urldata_rename~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d52681e1d373ce66db3db3000394a2916351b63;p=curl Added #include <string.h> and removed a silly mistakenly added , --- diff --git a/lib/strtok.c b/lib/strtok.c index 901042430..bb740037d 100644 --- a/lib/strtok.c +++ b/lib/strtok.c @@ -25,6 +25,7 @@ #ifndef HAVE_STRTOK_R #include <stddef.h> +#include <string.h> char * Curl_strtok_r(char *ptr, const char *sep, char **end) @@ -51,7 +52,7 @@ Curl_strtok_r(char *ptr, const char *sep, char **end) if (**end) { /* the end is not a null byte */ - **end = '\0';, /* zero terminate it! */ + **end = '\0'; /* zero terminate it! */ ++*end; /* advance the last pointer to beyond the null byte */ }