summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-gpspipe_c
blob: 2afd83621fbd023a5da6c8de42bd3574351b8085 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- gpsd-2.95.orig/gpspipe.c	2010-06-11 11:21:42.000000000 +0200
+++ gpsd-2.95/gpspipe.c	2010-07-30 12:54:08.000000000 +0200
@@ -120,7 +120,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);