From: Guido Serassio Date: Wed, 9 Jul 2008 13:12:16 +0000 (+0200) Subject: Remove strtok_r() usage because is not available on all platforms X-Git-Tag: SQUID_3_1_0_1~49^2~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=821f91e69dc93f75dac64f5f05fe351ebaa85125;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);