mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
512dfab14f
Submitted by: kris Obtained from: OpenBSD
12 lines
364 B
Plaintext
12 lines
364 B
Plaintext
--- 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));
|
|
}
|