summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/lib/lwres/lwinetntop.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bind/lib/lwres/lwinetntop.c')
-rw-r--r--usr.sbin/bind/lib/lwres/lwinetntop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/lib/lwres/lwinetntop.c b/usr.sbin/bind/lib/lwres/lwinetntop.c
index 071eb83efe6..d6ab0ab20b6 100644
--- a/usr.sbin/bind/lib/lwres/lwinetntop.c
+++ b/usr.sbin/bind/lib/lwres/lwinetntop.c
@@ -86,7 +86,7 @@ inet_ntop4(const unsigned char *src, char *dst, size_t size) {
size_t len;
len = snprintf(tmp, sizeof(tmp), fmt, src[0], src[1], src[2], src[3]);
- if (len >= size) {
+ if (len >= sizeof(tmp)) {
errno = ENOSPC;
return (NULL);
}