mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
- Fixed a buffer overflow.
svn path=/trunk/; revision=5855
This commit is contained in:
parent
cd92a2363b
commit
54867f2910
|
@ -714,9 +714,9 @@ NdisRegisterProtocol(
|
|||
wcscpy(RegistryPathStr, SERVICES_KEY);
|
||||
wcscat(RegistryPathStr, (((WCHAR *)(KeyInformation->Data)) +8 ));
|
||||
wcscat(RegistryPathStr, PARAMETERS_KEY);
|
||||
wcsncat(RegistryPathStr, ProtocolCharacteristics->Name.Buffer, ProtocolCharacteristics->Name.Length);
|
||||
wcsncat(RegistryPathStr, ProtocolCharacteristics->Name.Buffer, ProtocolCharacteristics->Name.Length / sizeof(WCHAR) );
|
||||
|
||||
RegistryPathStr[PathLength/sizeof(WCHAR)] = 0;
|
||||
RegistryPathStr[PathLength/sizeof(WCHAR) - 1] = 0;
|
||||
|
||||
RtlInitUnicodeString(&RegistryPath, RegistryPathStr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue