diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-09-10 07:49:59 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-09-10 07:49:59 +0200 |
commit | 4bbf6ac5f03325bda806adddd01095115fdb5a0e (patch) | |
tree | 457271aab098d4e224ae59d0a31703ee6e1700b5 /lib | |
parent | 516221873b611bfa7159ef492c32a9e1c43bcfba (diff) | |
download | gnutls-4bbf6ac5f03325bda806adddd01095115fdb5a0e.tar.gz |
inet_ntop4: casted signed/unsigned comparisonminor-cleanups
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/inet_ntop.c | 2 |
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; |