summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/system/inet_ntop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/inet_ntop.c b/lib/system/inet_ntop.c
index 2ed11ba308..69920cd772 100644
--- a/lib/system/inet_ntop.c
+++ b/lib/system/inet_ntop.c
@@ -121,7 +121,7 @@ inet_ntop4 (const unsigned char *src, char *dst, unsigned size)
if (len < 0)
return NULL;
- if (len > size)
+ if ((unsigned)len > size)
{
errno = ENOSPC;
return NULL;