summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-hex_c
blob: ebb2e1697c4af8ba0632b227d49c64128a85242b (plain)
1
2
3
4
5
6
7
8
9
10
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);