diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-13 14:56:04 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-13 14:56:04 +0200 |
commit | 6d7a7f4776711758cf5b59028378f01cd8eba493 (patch) | |
tree | 67cc0ff4f56a0d7e1deff1d0a39867d486c86a9b /package/gpsd/patches/patch-hex_c | |
parent | 18b38b0eb68cbcb8793efe989dcd8796a60288af (diff) |
FreeBSD compatibility patches
- update ipset and libpri to latest upstream
Diffstat (limited to 'package/gpsd/patches/patch-hex_c')
-rw-r--r-- | package/gpsd/patches/patch-hex_c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/gpsd/patches/patch-hex_c b/package/gpsd/patches/patch-hex_c new file mode 100644 index 000000000..ebb2e1697 --- /dev/null +++ b/package/gpsd/patches/patch-hex_c @@ -0,0 +1,11 @@ +--- gpsd-2.39.orig/hex.c 2009-03-18 18:37:56.000000000 +0100 ++++ gpsd-2.39/hex.c 2009-06-13 09:13:58.000000000 +0200 +@@ -61,7 +61,7 @@ int gpsd_hexpack(char *src, char *dst, s + if ((l < 1) || ((size_t)l > len)) + return -2; + +- bzero(dst, (int)len); ++ memset(dst, 0, (int)len); + for (i = 0; i < l; i++) + if ((k = hex2bin(src+i*2)) != -1) + dst[i] = (char)(k & 0xff); |