summaryrefslogtreecommitdiff
path: root/x11/rxvt-devel/files/patch-src__command.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/rxvt-devel/files/patch-src__command.c')
-rw-r--r--x11/rxvt-devel/files/patch-src__command.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11/rxvt-devel/files/patch-src__command.c b/x11/rxvt-devel/files/patch-src__command.c
new file mode 100644
index 000000000000..3aa7b9478e6e
--- /dev/null
+++ b/x11/rxvt-devel/files/patch-src__command.c
@@ -0,0 +1,11 @@
+--- src/command.c.orig Thu Apr 5 03:52:39 2001
++++ src/command.c Fri Jun 22 13:36:57 2001
+@@ -2878,7 +2878,7 @@
+ unsigned char buf[256];
+
+ va_start(arg_ptr, fmt);
+- vsprintf((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));
+ }