openbsd-ports/x11/rxvt/patches/patch-src_command_c
steven a6250faab3 USE_LIBTOOL, but don't build a shared library.
remove spurious break in configure script while here.

feedback/ok espie, naddy
2007-04-01 05:37:28 +00:00

13 lines
469 B
Plaintext

$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,...)
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));
}