From: Ulrich Drepper Date: Sat, 2 Oct 1999 07:09:48 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/pre-glibc-2_1_3~335 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a465f6bdd2a7a1f79083fec65c3eeff093451e9e;p=thirdparty%2Fglibc.git Update. * resolv/inet_net_ntop.c (inet_net_ntop_ipv4): If BITS is zero account for added '0'. --- diff --git a/ChangeLog b/ChangeLog index 2ef7e9af142..0962c90db28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-10-01 Ulrich Drepper + * resolv/inet_net_ntop.c (inet_net_ntop_ipv4): If BITS is zero + account for added '0'. + * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Align handling of IPv6 tunnel address handling with bind 8.2.1. Allow len argument to be greater than needed address size. diff --git a/resolv/inet_net_ntop.c b/resolv/inet_net_ntop.c index 497b0af7c69..d012c537cf3 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'; }