Fixed invalid argument to strtok_s
@@ -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:
