diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-03-09 14:55:20 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-03-09 14:55:20 +0000 |
commit | a6bf685ec3f64c3eae2d799aa1ebbdaa8f1de236 (patch) | |
tree | da95ae608aa55f8d8f97ec9bacc091f6b675c7a6 /hex.c | |
parent | befe1eaba3c5bbd09da277a77acae6d0fe4fbca0 (diff) | |
download | gpsd-a6bf685ec3f64c3eae2d799aa1ebbdaa8f1de236.tar.gz |
Improve error detection from gpsd_hexpack().
Diffstat (limited to 'hex.c')
-rw-r--r-- | hex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ int gpsd_hexpack(char *src, char *dst, size_t len){ l = (int)(strlen(src) / 2); if ((l < 1) || ((size_t)l > len)) - return -1; + return -2; bzero(dst, (int)len); for (i = 0; i < l; i++) |