mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* resolv/inet_net_ntop.c (inet_net_ntop_ipv4): If BITS is zero account for added '0'.
This commit is contained in:
@ -98,6 +98,7 @@ inet_net_ntop_ipv4(src, bits, dst, size)
|
||||
if (size < sizeof "0")
|
||||
goto emsgsize;
|
||||
*dst++ = '0';
|
||||
--size;
|
||||
*dst = '\0';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user