mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
Update.
* resolv/inet_net_ntop.c (inet_net_ntop_ipv4): If BITS is zero account for added '0'.
This commit is contained in:
parent
20cc4c87c0
commit
a465f6bdd2
@ -1,5 +1,8 @@
|
||||
1999-10-01 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* 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.
|
||||
|
@ -98,6 +98,7 @@ inet_net_ntop_ipv4(src, bits, dst, size)
|
||||
if (size < sizeof "0")
|
||||
goto emsgsize;
|
||||
*dst++ = '0';
|
||||
--size;
|
||||
*dst = '\0';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user