From: Sterling Hughes <sterling@bumblebury.com>
Date: Sun, 26 Aug 2001 20:51:16 +0000 (+0000)
Subject: we should be using start here.
X-Git-Tag: before_urldata_rename~14
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=321ba15a82df0dba12b8f21fa60025c02e3bb998;p=curl

we should be using start here.
---

diff --git a/lib/strtok.c b/lib/strtok.c
index bb740037d..a1525df02 100644
--- 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 */