From 4bbf6ac5f03325bda806adddd01095115fdb5a0e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 10 Sep 2016 07:49:59 +0200 Subject: inet_ntop4: casted signed/unsigned comparison --- lib/system/inet_ntop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1