aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-03-05 14:10:15 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-03-05 14:10:15 +0000
commit92992ece4680fdf3d6fc6c7d82c3938b6ca21b1e (patch)
treecd2b0abb1afc89cee7501b8de389d5897c7bdae0
parent83a01c3a80c8f71e30d071d09117ed4cc6fc0bd9 (diff)
Notes
-rw-r--r--usr.bin/wall/ttymsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/wall/ttymsg.c b/usr.bin/wall/ttymsg.c
index 3dccfbc813358..c65cfe8720d60 100644
--- a/usr.bin/wall/ttymsg.c
+++ b/usr.bin/wall/ttymsg.c
@@ -71,7 +71,7 @@ ttymsg(struct iovec *iov, int iovcnt, const char *line, int tmout)
if (iovcnt > sizeof(localiov) / sizeof(localiov[0]))
return ("too many iov's (change code in wall/ttymsg.c)");
- strlcat(device, line, sizeof(device));
+ strlcpy(device + sizeof(_PATH_DEV) - 1, line, sizeof(device));
if (strchr(device + sizeof(_PATH_DEV) - 1, '/')) {
/* A slash is an attempt to break security... */
(void) snprintf(errbuf, sizeof(errbuf),