summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hex.c b/hex.c
index d4d52980..11e41db5 100644
--- a/hex.c
+++ b/hex.c
@@ -57,7 +57,7 @@ int gpsd_hexpack(char *src, char *dst, size_t len){
int i, k, l;
l = (int)(strlen(src) / 2);
- if ((l < 1) || (l > len))
+ if ((l < 1) || ((size_t)l > len))
return -1;
bzero(dst, len);