diff options
author | Zbigniew Chyla <zbigniew.chyla@nsn.com> | 2015-01-16 15:46:59 +0100 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-21 10:47:26 -0500 |
commit | 4abdcf1ac9a891a5010f238214150adbc2073b38 (patch) | |
tree | ccd55b9a74504246569a0d84d7853370541cad34 /monitor_nmea.c | |
parent | b500289f7af867ee5d5c236247f8f8a2a48ad342 (diff) | |
download | gpsd-4abdcf1ac9a891a5010f238214150adbc2073b38.tar.gz |
Add str_{,v}appendf, use it everywhere.
This change doesn't affect generated binary code.
Diffstat (limited to 'monitor_nmea.c')
-rw-r--r-- | monitor_nmea.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor_nmea.c b/monitor_nmea.c index 460e6890..e0648d52 100644 --- a/monitor_nmea.c +++ b/monitor_nmea.c @@ -18,6 +18,7 @@ #include "gpsd.h" #include "gpsmon.h" #include "gpsdclient.h" +#include "strfuncs.h" #ifdef NMEA_ENABLE extern const struct gps_type_t driver_nmea0183; @@ -281,7 +282,7 @@ static void nmea_update(void) scr[0] = '\0'; for (i = 0; i < MAXCHANNELS; i++) { if (session.gpsdata.skyview[i].used) - (void)snprintf(scr + strlen(scr), sizeof(scr) - strlen(scr), + str_appendf(scr, sizeof(scr), "%d ", session.gpsdata.skyview[i].PRN); } getmaxyx(gpgsawin, ymax, xmax); |