ntdsapi: Fix null termination of buffer.

Signed-off-by: Alasdair Sinclair <alasdairsinc@gmail.com>
This commit is contained in:
Alasdair Sinclair 2015-10-05 00:31:31 +00:00 committed by Alexandre Julliard
parent 9eb8aa1ebb
commit ac7069e09b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}