projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6cd140
)
Fixed invalid argument to strtok_s
author
akallabeth
<akallabeth@posteo.net>
Tue, 19 May 2020 06:01:48 +0000
(08:01 +0200)
committer
akallabeth
<akallabeth@posteo.net>
Wed, 20 May 2020 13:41:24 +0000
(15:41 +0200)
(cherry picked from commit
dc4ac3ba17b6a340b96aa3f6363c6fac866696b7
)
winpr/libwinpr/utils/sam.c
patch
|
blob
|
history
diff --git
a/winpr/libwinpr/utils/sam.c
b/winpr/libwinpr/utils/sam.c
index
c2f979a
..
b4af5b3
100644
(file)
--- a/
winpr/libwinpr/utils/sam.c
+++ b/
winpr/libwinpr/utils/sam.c
@@
-310,7
+310,7
@@
WINPR_SAM_ENTRY* SamLookupUserA(WINPR_SAM* sam, LPSTR User, UINT32 UserLength, L
}
SamResetEntry(entry);
- sam->line = strtok_s(NULL, "\n", sam->context);
+ sam->line = strtok_s(NULL, "\n",
&
sam->context);
}
out_fail:
@@
-425,7
+425,7
@@
WINPR_SAM_ENTRY* SamLookupUserW(WINPR_SAM* sam, LPWSTR User, UINT32 UserLength,
}
SamResetEntry(entry);
- sam->line = strtok_s(NULL, "\n", sam->context);
+ sam->line = strtok_s(NULL, "\n",
&
sam->context);
}
out_fail: