diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-03-05 14:10:15 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-03-05 14:10:15 +0000 |
| commit | 92992ece4680fdf3d6fc6c7d82c3938b6ca21b1e (patch) | |
| tree | cd2b0abb1afc89cee7501b8de389d5897c7bdae0 /usr.bin | |
| parent | 83a01c3a80c8f71e30d071d09117ed4cc6fc0bd9 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/wall/ttymsg.c | 2 |
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), |
