2007-04-01 01:37:28 -04:00
|
|
|
$OpenBSD: patch-src_command_c,v 1.3 2007/04/01 05:37:28 steven Exp $
|
|
|
|
--- src/command.c.orig Wed Mar 26 07:01:23 2003
|
|
|
|
+++ src/command.c Sun Apr 1 07:30:05 2007
|
|
|
|
@@ -3098,7 +3098,7 @@ rxvt_tt_printf(rxvt_t *r, const char *fmt,...)
|
2001-06-22 16:51:18 -04:00
|
|
|
unsigned char buf[256];
|
|
|
|
|
|
|
|
va_start(arg_ptr, fmt);
|
2004-06-17 02:39:03 -04:00
|
|
|
- vsprintf((char *)buf, fmt, arg_ptr);
|
|
|
|
+ vsnprintf((char *)buf, sizeof(buf), fmt, arg_ptr);
|
2001-06-22 16:51:18 -04:00
|
|
|
va_end(arg_ptr);
|
2004-06-17 02:39:03 -04:00
|
|
|
rxvt_tt_write(r, buf, (unsigned int)STRLEN(buf));
|
2001-06-22 16:51:18 -04:00
|
|
|
}
|