blob: ad6b2e981a7ca24ad72be2281486f4bc049a3b26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- gpsd-2.39.orig/hex.c Wed Mar 18 18:37:56 2009
+++ gpsd-2.39/hex.c Tue Feb 16 21:33:16 2010
@@ -61,7 +61,7 @@ int gpsd_hexpack(char *src, char *dst, size_t len){
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);
|