summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-hex_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/gpsd/patches/patch-hex_c')
-rw-r--r--package/gpsd/patches/patch-hex_c11
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);