summaryrefslogtreecommitdiff
path: root/hex.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-01-21 09:57:59 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-01-21 09:57:59 +0000
commit7925f0d0fcb3c98dc254ba1d18aef0c89c86b8c6 (patch)
treee3aefcf4260a9c8d3949e0a2b16941ceb7ff83de /hex.c
parent9bafada0e09f12e2ad26b3452b2e6903ba11d3f5 (diff)
downloadgpsd-7925f0d0fcb3c98dc254ba1d18aef0c89c86b8c6.tar.gz
Splint cleanup.
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 11e41db5..270e346a 100644
--- a/hex.c
+++ b/hex.c
@@ -60,7 +60,7 @@ int gpsd_hexpack(char *src, char *dst, size_t len){
if ((l < 1) || ((size_t)l > len))
return -1;
- bzero(dst, len);
+ bzero(dst, (int)len);
for (i = 0; i < l; i++)
if ((k = hex2bin(src+i*2)) != -1)
dst[i] = (char)(k & 0xff);