- Add missing null termination for the line buffer in GetProtoGetNextEnt. Patch by Víctor Martínez Calvo. CID 716700
CORE-11218 #resolve
svn path=/trunk/; revision=71292
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
- NULL);
+ NULL);
}
PCHAR
&Read,
NULL)) return NULL;
+ /* Null terminate LineBuffer */
+ Buffer->LineBuffer[Read] = ANSI_NULL;
+
/* Find out where the line ends */
p1 = Buffer->LineBuffer;
p = strchr(Buffer->LineBuffer, '\n');
PWSTHREAD Thread;
INT ErrorCode;
PPROTOENT Protoent;
- PVOID GetProtoBuffer;
+ PVOID GetProtoBuffer;
HANDLE DbHandle;
DPRINT("getprotobynumber: %lx\n", number);
PWSTHREAD Thread;
INT ErrorCode;
PPROTOENT Protoent;
- PVOID GetProtoBuffer;
+ PVOID GetProtoBuffer;
HANDLE DbHandle;
DPRINT("getprotobyname: %s\n", name);