summaryrefslogtreecommitdiff
blob: 9247d0b067f44196cd5e6f028df613bac560c4b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
https://github.com/rsyslog/rsyslog/issues/3346

--- a/tools/omusrmsg.c
+++ b/tools/omusrmsg.c
@@ -261,7 +261,7 @@ static rsRetVal wallmsg(uchar* pMsg, instanceData *pData)
 
 		/* compute the device name */
 		strcpy(p, _PATH_DEV);
-		memcpy(p, ut.ut_line, UNAMESZ);
+		strncat(p, ut.ut_line, UNAMESZ);
 
 		/* we must be careful when writing to the terminal. A terminal may block
 		 * (for example, a user has pressed <ctl>-s). In that case, we can not