summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-02-08 19:27:58 -0800
committerGary E. Miller <gem@rellim.com>2018-02-08 19:27:58 -0800
commite35d22c954eccbca23b3ec3326bb991d8d7d1088 (patch)
treec4d81adcab69c2750473596fa4c2fe0379374f31 /gpspipe.c
parent89da38d168e5d8ad1fc7886bacf43b9b1e0aaea0 (diff)
downloadgpsd-e35d22c954eccbca23b3ec3326bb991d8d7d1088.tar.gz
gpspipe: buffer to small. 40 > 20
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 72eed301..479c03a5 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -341,7 +341,7 @@ int main(int argc, char **argv)
serbuf[j++] = buf[i];
}
if (new_line && timestamp) {
- char tmstr_u[20]; // time with "usec" resolution
+ char tmstr_u[40]; // time with "usec" resolution
struct timespec now;
struct tm *tmp_now;