openbsd-ports/x11/rxvt/patches/patch-src_command_c
2001-06-22 20:51:18 +00:00

13 lines
433 B
Plaintext

$OpenBSD: patch-src_command_c,v 1.1 2001/06/22 20:51:19 jasoni Exp $
--- src/command.c.orig Thu Apr 5 03:52:39 2001
+++ src/command.c Fri Jun 22 13:36:57 2001
@@ -2796,7 +2796,7 @@ rxvt_tt_printf(rxvt_t *r, const char *fm
unsigned char buf[256];
va_start(arg_ptr, fmt);
- vsprintf(buf, fmt, arg_ptr);
+ vsnprintf(buf, sizeof(buf), fmt, arg_ptr);
va_end(arg_ptr);
rxvt_tt_write(r, buf, STRLEN(buf));
}