summaryrefslogtreecommitdiffstats
path: root/contrib/bind/lib/inet/inet_ntop.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind/lib/inet/inet_ntop.c')
-rw-r--r--contrib/bind/lib/inet/inet_ntop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/bind/lib/inet/inet_ntop.c b/contrib/bind/lib/inet/inet_ntop.c
index 0b85e70..d588e9f 100644
--- a/contrib/bind/lib/inet/inet_ntop.c
+++ b/contrib/bind/lib/inet/inet_ntop.c
@@ -16,7 +16,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: inet_ntop.c,v 1.8 1999/10/13 16:39:28 vixie Exp $";
+static const char rcsid[] = "$Id: inet_ntop.c,v 1.10 2001/01/25 20:21:10 vixie Exp $";
#endif /* LIBC_SCCS and not lint */
#include "port_before.h"
@@ -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) {
errno = ENOSPC;
return (NULL);
}
OpenPOWER on IntegriCloud