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