From 1f0fd5f7d90a6a697e70185531d23a9e7ba4eba1 Mon Sep 17 00:00:00 2001 From: Guido Serassio Date: Wed, 9 Jul 2008 15:15:32 +0200 Subject: [PATCH] Remove strtok_r() usage because is not available on all platforms --- helpers/ntlm_auth/fakeauth/fakeauth_auth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 helpers/ntlm_auth/fakeauth/fakeauth_auth.c 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); -- 2.47.2