freebsd-ports/x11/rxvt-devel/files/patch-src::command.c
Mario Sergio Fujikawa Ferreira b5d41c297c 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>
2001-11-19 15:48:31 +00:00

11 lines
353 B
C

--- 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));
}