summaryrefslogtreecommitdiff
path: root/hex.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-01-09 03:16:11 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-01-09 03:16:11 +0000
commita0c9cafe4b355ada897841298e87346a279840a0 (patch)
treea2427f50fe58839e148caf76d24995daa82f9c64 /hex.c
parent1f15a2504212bdbea0eb55fc214e9059b520a180 (diff)
downloadgpsd-a0c9cafe4b355ada897841298e87346a279840a0.tar.gz
hush
Diffstat (limited to 'hex.c')
-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);