Index: dll/win32/ws2_32_new/src/getproto.c =================================================================== --- dll/win32/ws2_32_new/src/getproto.c (revision 71259) +++ dll/win32/ws2_32_new/src/getproto.c (working copy) @@ -118,6 +118,9 @@ &Read, NULL)) return NULL; + /* Null terminate LineBuffer */ + *(Buffer->LineBuffer + Read) = 0; + /* Find out where the line ends */ p1 = Buffer->LineBuffer; p = strchr(Buffer->LineBuffer, '\n');