1234567891011 |
- --- 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);
|