projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56f6815
)
Added #include <string.h> and removed a silly mistakenly added ,
author
Daniel Stenberg
<daniel@haxx.se>
Sun, 26 Aug 2001 14:27:07 +0000
(14:27 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sun, 26 Aug 2001 14:27:07 +0000
(14:27 +0000)
lib/strtok.c
patch
|
blob
|
history
diff --git
a/lib/strtok.c
b/lib/strtok.c
index
9010424
..
bb74003
100644
(file)
--- 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 */
}