diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-13 09:49:01 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-13 09:49:01 -0500 |
commit | c93c46f0c10e56b52d3c980e7082ab74f7003f66 (patch) | |
tree | 2bfb119832f8a0deef0c9e0ce2d8ad3c76de5949 /contrib/ashctl.c | |
parent | 52d4e56c518adf59c3469b1d79eda7e4f56e7f5f (diff) | |
download | gpsd-c93c46f0c10e56b52d3c980e7082ab74f7003f66.tar.gz |
Warning cleanups.
Diffstat (limited to 'contrib/ashctl.c')
-rw-r--r-- | contrib/ashctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ashctl.c b/contrib/ashctl.c index 10975899..39a45dbb 100644 --- a/contrib/ashctl.c +++ b/contrib/ashctl.c @@ -68,8 +68,8 @@ u: fprintf(stderr, "usage: ashctl <port> [raw|normal]\n" } sleep(1); - read(fd, buf, BUFSIZ-1); - buf[BUFSIZ-1] = '\0'; + i = read(fd, buf, BUFSIZ-1); + buf[i] = '\0'; if (strstr(buf, "$PASH") || strstr(buf, "$GP")) goto done; } |