Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151236245
D3254.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
718 B
Referenced Files
None
Subscribers
None
D3254.id.diff
View Options
Index: head/usr.bin/wall/ttymsg.c
===================================================================
--- head/usr.bin/wall/ttymsg.c
+++ head/usr.bin/wall/ttymsg.c
@@ -62,7 +62,7 @@
struct iovec localiov[7];
ssize_t left, wret;
int cnt, fd;
- static char device[MAXNAMLEN] = _PATH_DEV;
+ char device[MAXNAMLEN] = _PATH_DEV;
static char errbuf[1024];
char *p;
int forked;
@@ -71,8 +71,8 @@
if (iovcnt > (int)(sizeof(localiov) / sizeof(localiov[0])))
return ("too many iov's (change code in wall/ttymsg.c)");
+ strlcat(device, line, sizeof(device));
p = device + sizeof(_PATH_DEV) - 1;
- strlcpy(p, line, sizeof(device));
if (strncmp(p, "pts/", 4) == 0)
p += 4;
if (strchr(p, '/') != NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 1:09 AM (1 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31061941
Default Alt Text
D3254.id.diff (718 B)
Attached To
Mode
D3254: Fix buffer overflow in syslogd, wall and talkd.
Attached
Detach File
Event Timeline
Log In to Comment