mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 23:03:23 +00:00
Fix lurking bug exposed by r18687
svn path=/trunk/; revision=18781
This commit is contained in:
parent
ae16fd8e66
commit
c40ca03e31
1 changed files with 1 additions and 0 deletions
|
@ -595,6 +595,7 @@ pretty_print_option(unsigned int code, unsigned char *data, int len,
|
||||||
foo.s_addr = htonl(getULong(dp));
|
foo.s_addr = htonl(getULong(dp));
|
||||||
strncpy(op, inet_ntoa(foo), opleft - 1);
|
strncpy(op, inet_ntoa(foo), opleft - 1);
|
||||||
op[opleft - 1] = ANSI_NULL;
|
op[opleft - 1] = ANSI_NULL;
|
||||||
|
opcount = strlen(op);
|
||||||
if (opcount >= opleft)
|
if (opcount >= opleft)
|
||||||
goto toobig;
|
goto toobig;
|
||||||
opleft -= opcount;
|
opleft -= opcount;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue