summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-10 07:49:59 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-10 07:49:59 +0200
commit4bbf6ac5f03325bda806adddd01095115fdb5a0e (patch)
tree457271aab098d4e224ae59d0a31703ee6e1700b5
parent516221873b611bfa7159ef492c32a9e1c43bcfba (diff)
downloadgnutls-minor-cleanups.tar.gz
inet_ntop4: casted signed/unsigned comparisonminor-cleanups
-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;