mirror of
https://github.com/reactos/wine.git
synced 2025-02-22 05:40:50 +00:00
ntdsapi: Fix null termination of buffer.
Signed-off-by: Alasdair Sinclair <alasdairsinc@gmail.com>
This commit is contained in:
parent
9eb8aa1ebb
commit
ac7069e09b
@ -225,7 +225,7 @@ DWORD WINAPI DsClientMakeSpnForTargetServerW(LPCWSTR class, LPCWSTR name, DWORD
|
||||
p = buf + strlenW(class);
|
||||
*p++ = '/';
|
||||
memcpy(p, name, strlenW(name) * sizeof(WCHAR));
|
||||
buf[len] = 0;
|
||||
buf[len - 1] = 0;
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user