summaryrefslogtreecommitdiff
path: root/monitor_sirf.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 /monitor_sirf.c
parent835994cbf2fe3bd516c914ca269596dfbab680de (diff)
downloadgpsd-cfb5daa16285c63739384dcf256a44b2134e7828.tar.gz
Cosmetic fix from mike_t, slightly hacked. All regression tests pass.
Diffstat (limited to 'monitor_sirf.c')
-rw-r--r--monitor_sirf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c
index b647f2ed..96e57d45 100644
--- a/monitor_sirf.c
+++ b/monitor_sirf.c
@@ -271,7 +271,7 @@ static void sirf_update(void)
unsigned char *buf;
size_t len;
uint8_t dgps;
- char tbuf[128];
+ char tbuf[JSON_DATE_MAX+1];
assert(mid27win != NULL);
buf = session.packet.outbuffer + 4;
@@ -292,7 +292,7 @@ static void sirf_update(void)
17) / 8);
/* line 3 */
(void)wmove(mid2win, 3, 7);
- (void)wprintw(mid2win, "%-22s",
+ (void)wprintw(mid2win, "%-24s",
unix_to_iso8601(session.gpsdata.fix.time, tbuf, sizeof(tbuf))
);
(void)wmove(mid2win, 3, 38);