aboutsummaryrefslogtreecommitdiffstats
path: root/x11/rxvt-devel/files
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-11-19 23:48:31 +0800
committerlioux <lioux@FreeBSD.org>2001-11-19 23:48:31 +0800
commit448a758d67cb2748162e3219f47140167077d662 (patch)
tree3fa83dfa6891cb59cc182d35fc96a4cd6ccd8bbe /x11/rxvt-devel/files
parent3e5c987f33d0bfa6023ed90a6b3badb619450f9e (diff)
downloadfreebsd-ports-gnome-448a758d67cb2748162e3219f47140167077d662.tar.gz
freebsd-ports-gnome-448a758d67cb2748162e3219f47140167077d662.tar.zst
freebsd-ports-gnome-448a758d67cb2748162e3219f47140167077d662.zip
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/files')
-rw-r--r--x11/rxvt-devel/files/patch-src::command.c2
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 32cabe35a474..3aa7b9478e6e 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));
}