patch-driver_garmin_txt_c 669 B

1234567891011121314151617181920
  1. --- gpsd-2.39.orig/driver_garmin_txt.c 2009-03-03 12:39:57.000000000 +0100
  2. +++ gpsd-2.39/driver_garmin_txt.c 2009-06-13 09:13:23.000000000 +0200
  3. @@ -167,7 +167,7 @@ static int gar_decode(const char *data,
  4. return -1;
  5. }
  6. - bzero(buf, (int)sizeof(buf));
  7. + memset(buf, 0, (int)sizeof(buf));
  8. (void) strncpy(buf, data, length);
  9. gpsd_report(LOG_RAW, "Decoded string: %s\n", buf);
  10. @@ -230,7 +230,7 @@ static int gar_int_decode(const char *da
  11. return -1;
  12. }
  13. - bzero(buf, (int)sizeof(buf));
  14. + memset(buf, 0, (int)sizeof(buf));
  15. (void) strncpy(buf, data, length);
  16. gpsd_report(LOG_RAW, "Decoded string: %s\n", buf);