Commit ac7069e0 authored by Alasdair Sinclair's avatar Alasdair Sinclair Committed by Alexandre Julliard

ntdsapi: Fix null termination of buffer.

parent 9eb8aa1e
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment