mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[WS2_32_NEW]
- 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
This commit is contained in:
parent
7c3631a94b
commit
274daad96e
1 changed files with 6 additions and 3 deletions
|
@ -118,6 +118,9 @@ GetProtoGetNextEnt(IN HANDLE DbHandle,
|
|||
&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');
|
||||
|
|
Loading…
Reference in a new issue