aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-05-29 19:17:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-05-29 19:17:39 +0000
commitd567659bf4003c0808c309a52100a32a82a4b128 (patch)
tree1d51d055db3cb063c8186d49c8000e6a71cc7134 /lib/url.c
parente0558ae541d94c1d183d2cb67c5edf120ba6974b (diff)
strtok() replaced with strtok_r()
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 726e259ca..55d4463c8 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1560,6 +1560,7 @@ static CURLcode Connect(struct UrlData *data,
* checked if the lowercase versions don't exist.
*/
char *no_proxy=NULL;
+ char *no_proxy_tok_buf;
char *proxy=NULL;
char proxy_env[128];
@@ -1571,7 +1572,7 @@ static CURLcode Connect(struct UrlData *data,
/* NO_PROXY wasn't specified or it wasn't just an asterisk */
char *nope;
- nope=no_proxy?strtok(no_proxy, ", "):NULL;
+ nope=no_proxy?strtok_r(no_proxy, ", ", &no_proxy_tok_buf):NULL;
while(nope) {
if(strlen(nope) <= strlen(conn->name)) {
char *checkn=
@@ -1581,7 +1582,7 @@ static CURLcode Connect(struct UrlData *data,
break;
}
}
- nope=strtok(NULL, ", ");
+ nope=strtok_r(NULL, ", ", &no_proxy_tok_buf);
}
if(!nope) {
/* It was not listed as without proxy */