diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-12 16:56:49 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-12 18:24:39 -0500 |
commit | df9232c655921ed37083c9509940fdb52b8f70fa (patch) | |
tree | 4d20a940ef2b991d1b68304241607e8ca137425d /monitor_sirf.c | |
parent | cb75e02a7f2b1854f956e7fa0565dfc31c791dc9 (diff) | |
download | gpsd-df9232c655921ed37083c9509940fdb52b8f70fa.tar.gz |
Replace Gary's magic number 22 with TIMESPEC_LEN.
All regression tests pass.
Diffstat (limited to 'monitor_sirf.c')
-rw-r--r-- | monitor_sirf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c index 6075dd5c..e0e6c5f2 100644 --- a/monitor_sirf.c +++ b/monitor_sirf.c @@ -599,7 +599,7 @@ static void sirf_update(void) /* need a bigger field to show it */ (void)mvwprintw(mid7win, 2, 37, "> 1 day"); } else { - char buf2[22]; + char buf2[TIMESPEC_LEN]; (void)timespec_str( &timedelta, buf2, sizeof(buf2) ); (void)mvwprintw(mid7win, 2, 37, "%s", buf2); } |