diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-13 10:41:15 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-13 10:41:15 -0500 |
commit | ec08b6848939dc66b378ecd9789e33f27f915ff9 (patch) | |
tree | f32512e4880646db1ba86d4c6a17ca243096e46c /contrib/ashctl.c | |
parent | c93c46f0c10e56b52d3c980e7082ab74f7003f66 (diff) | |
download | gpsd-ec08b6848939dc66b378ecd9789e33f27f915ff9.tar.gz |
More deheader testing. All regressions pass, codebase splints clean.
Diffstat (limited to 'contrib/ashctl.c')
-rw-r--r-- | contrib/ashctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ashctl.c b/contrib/ashctl.c index 39a45dbb..0475255a 100644 --- a/contrib/ashctl.c +++ b/contrib/ashctl.c @@ -159,7 +159,7 @@ static int nmea_send(int fd, const char *fmt, ... ) va_start(ap, fmt) ; (void)vsnprintf(buf, sizeof(buf)-5, fmt, ap); va_end(ap); - (void)strlcat(buf, "*", BUFSIZ); + (void)strncat(buf, "*", sizeof(buf)-1); nmea_add_checksum(buf); // (void)fputs(buf, stderr); /* debug output */ tcflush(fd, TCIOFLUSH); |