diff options
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/inet_net_ntop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/resolv/inet_net_ntop.c b/resolv/inet_net_ntop.c index 497b0af7c6..d012c537cf 100644 --- a/resolv/inet_net_ntop.c +++ b/resolv/inet_net_ntop.c @@ -98,6 +98,7 @@ inet_net_ntop_ipv4(src, bits, dst, size) if (size < sizeof "0") goto emsgsize; *dst++ = '0'; + --size; *dst = '\0'; } |