summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-driver_garmin_txt_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-13 14:56:04 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-13 14:56:04 +0200
commit6d7a7f4776711758cf5b59028378f01cd8eba493 (patch)
tree67cc0ff4f56a0d7e1deff1d0a39867d486c86a9b /package/gpsd/patches/patch-driver_garmin_txt_c
parent18b38b0eb68cbcb8793efe989dcd8796a60288af (diff)
FreeBSD compatibility patches
- update ipset and libpri to latest upstream
Diffstat (limited to 'package/gpsd/patches/patch-driver_garmin_txt_c')
-rw-r--r--package/gpsd/patches/patch-driver_garmin_txt_c20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/gpsd/patches/patch-driver_garmin_txt_c b/package/gpsd/patches/patch-driver_garmin_txt_c
new file mode 100644
index 000000000..604e103b0
--- /dev/null
+++ b/package/gpsd/patches/patch-driver_garmin_txt_c
@@ -0,0 +1,20 @@
+--- gpsd-2.39.orig/driver_garmin_txt.c 2009-03-03 12:39:57.000000000 +0100
++++ gpsd-2.39/driver_garmin_txt.c 2009-06-13 09:13:23.000000000 +0200
+@@ -167,7 +167,7 @@ static int gar_decode(const char *data,
+ return -1;
+ }
+
+- bzero(buf, (int)sizeof(buf));
++ memset(buf, 0, (int)sizeof(buf));
+ (void) strncpy(buf, data, length);
+ gpsd_report(LOG_RAW, "Decoded string: %s\n", buf);
+
+@@ -230,7 +230,7 @@ static int gar_int_decode(const char *da
+ return -1;
+ }
+
+- bzero(buf, (int)sizeof(buf));
++ memset(buf, 0, (int)sizeof(buf));
+ (void) strncpy(buf, data, length);
+ gpsd_report(LOG_RAW, "Decoded string: %s\n", buf);
+