summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gl/inet_ntop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gl/inet_ntop.c b/gl/inet_ntop.c
index a6b17265dc..52f544d5e2 100644
--- a/gl/inet_ntop.c
+++ b/gl/inet_ntop.c
@@ -80,12 +80,12 @@ inet_ntop (int af, const void *restrict src,
{
#if HAVE_IPV4
case AF_INET:
- return (inet_ntop4 (src, dst, size));
+ return (inet_ntop4 (src, dst, cnt));
#endif
#if HAVE_IPV6
case AF_INET6:
- return (inet_ntop6 (src, dst, size));
+ return (inet_ntop6 (src, dst, cnt));
#endif
default: