diff options
author | lioux <lioux@FreeBSD.org> | 2001-11-19 15:48:31 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-11-19 15:48:31 +0000 |
commit | 448a758d67cb2748162e3219f47140167077d662 (patch) | |
tree | 3fa83dfa6891cb59cc182d35fc96a4cd6ccd8bbe /x11/rxvt-devel | |
parent | 3e5c987f33d0bfa6023ed90a6b3badb619450f9e (diff) | |
download | FreeBSD-ports-448a758d67cb2748162e3219f47140167077d662.zip FreeBSD-ports-448a758d67cb2748162e3219f47140167077d662.tar.gz |
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>
Diffstat (limited to 'x11/rxvt-devel')
-rw-r--r-- | x11/rxvt-devel/files/patch-src::command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x11/rxvt-devel/files/patch-src::command.c b/x11/rxvt-devel/files/patch-src::command.c index 32cabe3..3aa7b94 100644 --- a/x11/rxvt-devel/files/patch-src::command.c +++ b/x11/rxvt-devel/files/patch-src::command.c @@ -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)); } |