mirror of https://github.com/FreeRDP/FreeRDP
Fixed invalid argument to strtok_s
This commit is contained in:
parent
fe3e7eaa34
commit
aea795eecf
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue