mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-24 21:01:20 +00:00
Remove the (char *) from the sizeof the vsnprintf line since this
restricts the buffer size to 4 bytes rather than the 256 bytes intended PR: 32100 Submitted by: Christopher Hall <hsw@acm.org>
This commit is contained in:
parent
cb4b2766db
commit
b5d41c297c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50221
@ -5,7 +5,7 @@
|
||||
|
||||
va_start(arg_ptr, fmt);
|
||||
- vsprintf((char *)buf, fmt, arg_ptr);
|
||||
+ vsnprintf((char *)buf, sizeof((char *) buf), fmt, arg_ptr);
|
||||
+ vsnprintf((char *)buf, sizeof(buf), fmt, arg_ptr);
|
||||
va_end(arg_ptr);
|
||||
rxvt_tt_write(r, buf, (unsigned int)STRLEN(buf));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user