summaryrefslogtreecommitdiff
path: root/x11/rxvt-devel
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-11-19 15:48:31 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-11-19 15:48:31 +0000
commitb5d41c297c8fe0075b0f8c9412ab4f82a91685a5 (patch)
tree77530de15a53f664d01db9bec8fd055e11959a05 /x11/rxvt-devel
parentUnbroke for 4-stable. (diff)
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>
Notes
Notes: svn path=/head/; revision=50221
Diffstat (limited to 'x11/rxvt-devel')
-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));
}