summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-gpspipe_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/gpsd/patches/patch-gpspipe_c')
-rw-r--r--package/gpsd/patches/patch-gpspipe_c11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/gpsd/patches/patch-gpspipe_c b/package/gpsd/patches/patch-gpspipe_c
new file mode 100644
index 000000000..d840a2a36
--- /dev/null
+++ b/package/gpsd/patches/patch-gpspipe_c
@@ -0,0 +1,11 @@
+--- gpsd-2.39.orig/gpspipe.c 2009-03-03 00:22:49.000000000 +0100
++++ gpsd-2.39/gpspipe.c 2009-06-13 09:14:14.000000000 +0200
+@@ -108,7 +108,7 @@ static void open_serial(char* device)
+ }
+
+ /* Clear struct for new port settings. */
+- /*@i@*/bzero(&newtio, sizeof(newtio));
++ /*@i@*/memset(&newtio, 0, sizeof(newtio));
+
+ /* make it raw */
+ (void)cfmakeraw(&newtio);