1
0

patch-hex_c 386 B

1234567891011
  1. --- gpsd-2.39.orig/hex.c 2009-03-18 18:37:56.000000000 +0100
  2. +++ gpsd-2.39/hex.c 2009-06-13 09:13:58.000000000 +0200
  3. @@ -61,7 +61,7 @@ int gpsd_hexpack(char *src, char *dst, s
  4. if ((l < 1) || ((size_t)l > len))
  5. return -2;
  6. - bzero(dst, (int)len);
  7. + memset(dst, 0, (int)len);
  8. for (i = 0; i < l; i++)
  9. if ((k = hex2bin(src+i*2)) != -1)
  10. dst[i] = (char)(k & 0xff);