summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-05-16 19:09:12 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-05-16 19:09:12 +0000
commitc6661484cde558123d8e1daa6bb675ad8e0d0dd3 (patch)
treecaf45598d927ab83c22c3af1278031599b4633f9 /libgpsd_core.c
parentffc53004b69ff7b6cefab89f0a027d9ff82359c4 (diff)
downloadgpsd-c6661484cde558123d8e1daa6bb675ad8e0d0dd3.tar.gz
Firlds widths can be a little shorter.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 3a469bec..8fbd0b23 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -345,7 +345,7 @@ void gpsd_binary_fix_dump(struct gps_device_t *session, char *bufp)
gmtime_r(&intfixtime, &tm);
if (session->gpsdata.fix.mode > 1) {
sprintf(bufp,
- "$GPGGA,%02d%02d%02d,%.4f,%c,%.4f,%c,%d,%02d,%s,%.1f,%c,",
+ "$GPGGA,%02d%02d%02d,%07.4f,%c,%08.4f,%c,%d,%02d,%s,%.1f,%c,",
tm.tm_hour,
tm.tm_min,
tm.tm_sec,
@@ -373,7 +373,7 @@ void gpsd_binary_fix_dump(struct gps_device_t *session, char *bufp)
bufp += strlen(bufp);
}
sprintf(bufp,
- "$GPRMC,%02d%02d%02d,%c,%07.4f,%c,%07.4f,%c,%.4f,%.3f,%02d%02d%02d,,",
+ "$GPRMC,%02d%02d%02d,%c,%07.4f,%c,%08.4f,%c,%.4f,%.3f,%02d%02d%02d,,",
tm.tm_hour,
tm.tm_min,
tm.tm_sec,