summaryrefslogtreecommitdiff
path: root/contrib/ashctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-13 10:41:15 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-13 10:41:15 -0500
commitec08b6848939dc66b378ecd9789e33f27f915ff9 (patch)
treef32512e4880646db1ba86d4c6a17ca243096e46c /contrib/ashctl.c
parentc93c46f0c10e56b52d3c980e7082ab74f7003f66 (diff)
downloadgpsd-ec08b6848939dc66b378ecd9789e33f27f915ff9.tar.gz
More deheader testing. All regressions pass, codebase splints clean.
Diffstat (limited to 'contrib/ashctl.c')
-rw-r--r--contrib/ashctl.c2
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);