summaryrefslogtreecommitdiff
path: root/lib/strtok.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-26 14:27:07 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-26 14:27:07 +0000
commit8d52681e1d373ce66db3db3000394a2916351b63 (patch)
treef7058d7f0d4dec0de96e22e413ce6ba0baa21630 /lib/strtok.c
parent56f6815d3d2e9d4b2823f64825fc0bbf4aa96379 (diff)
downloadcurl-8d52681e1d373ce66db3db3000394a2916351b63.tar.gz
Added #include <string.h> and removed a silly mistakenly added ,
Diffstat (limited to 'lib/strtok.c')
-rw-r--r--lib/strtok.c3
1 files changed, 2 insertions, 1 deletions
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 */
}