Fixed invalid argument to strtok_s

This commit is contained in:
akallabeth 2020-05-19 08:01:48 +02:00
parent fe3e7eaa34
commit aea795eecf
1 changed files with 2 additions and 2 deletions

View File

@ -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: