summaryrefslogtreecommitdiff
path: root/gpxlogger.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-30 04:37:26 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-30 04:37:26 -0400
commitcfb5daa16285c63739384dcf256a44b2134e7828 (patch)
treec22f1de76b5d4eac0516685eb07b85d184e8b4bc /gpxlogger.c
parent835994cbf2fe3bd516c914ca269596dfbab680de (diff)
downloadgpsd-cfb5daa16285c63739384dcf256a44b2134e7828.tar.gz
Cosmetic fix from mike_t, slightly hacked. All regression tests pass.
Diffstat (limited to 'gpxlogger.c')
-rw-r--r--gpxlogger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpxlogger.c b/gpxlogger.c
index 02aa7377..ce049316 100644
--- a/gpxlogger.c
+++ b/gpxlogger.c
@@ -47,7 +47,7 @@ static int debug;
static void print_gpx_header(void)
{
- char tbuf[128];
+ char tbuf[CLIENT_DATE_MAX+1];
(void)fprintf(logfile,"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
(void)fprintf(logfile,"<gpx version=\"1.1\" creator=\"GPSD %s - http://gpsd.berlios.de/\"\n", VERSION);
@@ -86,7 +86,7 @@ static void print_gpx_trk_start(void)
static void print_fix(struct gps_data_t *gpsdata, double time)
{
- char tbuf[128];
+ char tbuf[CLIENT_DATE_MAX+1];
(void)fprintf(logfile," <trkpt lat=\"%f\" lon=\"%f\">\n",
gpsdata->fix.latitude, gpsdata->fix.longitude);