From a465f6bdd2a7a1f79083fec65c3eeff093451e9e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 2 Oct 1999 07:09:48 +0000 Subject: Update. * resolv/inet_net_ntop.c (inet_net_ntop_ipv4): If BITS is zero account for added '0'. --- resolv/inet_net_ntop.c | 1 + 1 file changed, 1 insertion(+) (limited to 'resolv') 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'; } -- cgit v1.1