aboutsummaryrefslogtreecommitdiff
path: root/resolv/inet_net_ntop.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/inet_net_ntop.c')
-rw-r--r--resolv/inet_net_ntop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/resolv/inet_net_ntop.c b/resolv/inet_net_ntop.c
index 497b0af..d012c53 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';
}