From d567659bf4003c0808c309a52100a32a82a4b128 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 29 May 2001 19:17:39 +0000 Subject: strtok() replaced with strtok_r() --- lib/url.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/url.c') 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 */ -- cgit v1.2.3