diff options
Diffstat (limited to 'package/gpsd')
-rw-r--r-- | package/gpsd/patches/patch-driver_sirf_c | 11 | ||||
-rw-r--r-- | package/gpsd/patches/patch-gpspipe_c | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/package/gpsd/patches/patch-driver_sirf_c b/package/gpsd/patches/patch-driver_sirf_c new file mode 100644 index 000000000..058978636 --- /dev/null +++ b/package/gpsd/patches/patch-driver_sirf_c @@ -0,0 +1,11 @@ +--- gpsd-2.95.orig/driver_sirf.c 2010-06-11 10:38:24.000000000 +0200 ++++ gpsd-2.95/driver_sirf.c 2010-07-30 12:53:40.000000000 +0200 +@@ -325,7 +325,7 @@ static gps_mask_t sirf_msg_debug(unsigne + char msgbuf[MAX_PACKET_LENGTH * 3 + 2]; + int i; + +- bzero(msgbuf, (int)sizeof(msgbuf)); ++ memset(msgbuf, 0, (int)sizeof(msgbuf)); + + /*@ +charint @*/ + if (0xe1 == buf[0]) { /* Development statistics messages */ diff --git a/package/gpsd/patches/patch-gpspipe_c b/package/gpsd/patches/patch-gpspipe_c new file mode 100644 index 000000000..2afd83621 --- /dev/null +++ b/package/gpsd/patches/patch-gpspipe_c @@ -0,0 +1,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); |