From: Guido Serassio Date: Wed, 9 Jul 2008 13:15:32 +0000 (+0200) Subject: Remove strtok_r() usage because is not available on all platforms X-Git-Tag: SQUID_3_0_STABLE8~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f0fd5f7d90a6a697e70185531d23a9e7ba4eba1;p=thirdparty%2Fsquid.git Remove strtok_r() usage because is not available on all platforms --- diff --git a/helpers/ntlm_auth/fakeauth/fakeauth_auth.c b/helpers/ntlm_auth/fakeauth/fakeauth_auth.c old mode 100644 new mode 100755 index 6834a17ce7..e557d0d912 --- a/helpers/ntlm_auth/fakeauth/fakeauth_auth.c +++ b/helpers/ntlm_auth/fakeauth/fakeauth_auth.c @@ -429,7 +429,10 @@ main(int argc, char *argv[]) if (!ntlmDecodeAuth((struct ntlm_authenticate *) decoded, user, 256)) { lc(user); if (strip_domain_enabled) { - strtok_r(user, "\\", &p); + strtok(user, "\\"); + p = strtok(NULL, "\\"); + if (!p) + p = user; SEND2("AF %s", p); } else { SEND2("AF %s", user);