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_ubx.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_ubx.c')
-rw-r--r-- | monitor_ubx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c index f73a06b2..149d73b8 100644 --- a/monitor_ubx.c +++ b/monitor_ubx.c @@ -266,7 +266,7 @@ static void ubx_update(void) /* need a bigger field to show it */ (void)mvwprintw(ppswin, 1, 13, "> 1 day"); } else { - char buf2[22]; + char buf2[TIMESPEC_LEN]; (void)timespec_str( &timedelta, buf2, sizeof(buf2) ); (void)mvwprintw(ppswin, 1, 13, "%s", buf2); } |