projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e5dfc1
)
we should be using start here.
author
Sterling Hughes
<sterling@bumblebury.com>
Sun, 26 Aug 2001 20:51:16 +0000
(20:51 +0000)
committer
Sterling Hughes
<sterling@bumblebury.com>
Sun, 26 Aug 2001 20:51:16 +0000
(20:51 +0000)
lib/strtok.c
patch
|
blob
|
history
diff --git
a/lib/strtok.c
b/lib/strtok.c
index bb740037d933438802bf1344d3287b2ec808c21c..a1525df02fdef0e3e641b87206241d3f9c4ec7bb 100644
(file)
--- a/
lib/strtok.c
+++ b/
lib/strtok.c
@@
-43,7
+43,7
@@
Curl_strtok_r(char *ptr, const char *sep, char **end)
char *start = ptr;
/* set the end pointer to the first byte after the start */
- *end =
ptr
+ 1;
+ *end =
start
+ 1;
/* scan through the string to find where it ends, it ends on a
null byte or a character that exists in the separator string */