diff --git a/lib/strtok.c b/lib/strtok.c index 901042430715ee2dbb625639cf95ecb2341a7419..bb740037d933438802bf1344d3287b2ec808c21c 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 */ }