Author: tfaber
Date: Mon May 9 07:49:58 2016
New Revision: 71293
URL:
http://svn.reactos.org/svn/reactos?rev=71293&view=rev
Log:
[WS2_32_NEW]
- Use the correct size of ServiceBuffer in getnameinfo. Patch by Víctor Martínez Calvo.
CID 716150
CORE-11214 #resolve
Modified:
trunk/reactos/dll/win32/ws2_32_new/src/addrinfo.c
Modified: trunk/reactos/dll/win32/ws2_32_new/src/addrinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32_new/src/a…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32_new/src/addrinfo.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32_new/src/addrinfo.c [iso-8859-1] Mon May 9 07:49:58
2016
@@ -937,7 +937,7 @@
{
/* Setup the data for it */
ServiceString = ServiceBuffer;
- ServLength = sizeof(ServiceBuffer) - 1;
+ ServLength = sizeof(ServiceBuffer) / sizeof(WCHAR);
}
/* Now call the unicode function */