diff options
Diffstat (limited to 'resolv/inet_ntop.c')
-rw-r--r-- | resolv/inet_ntop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/inet_ntop.c b/resolv/inet_ntop.c index 1222d08bda..e5553a1d3b 100644 --- a/resolv/inet_ntop.c +++ b/resolv/inet_ntop.c @@ -96,7 +96,7 @@ inet_ntop4(src, dst, size) static const char fmt[] = "%u.%u.%u.%u"; char tmp[sizeof "255.255.255.255"]; - if (SPRINTF((tmp, fmt, src[0], src[1], src[2], src[3])) >= size) { + if (SPRINTF((tmp, fmt, src[0], src[1], src[2], src[3])) > size) { __set_errno (ENOSPC); return (NULL); } |