1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/x11/rxvt/files/patch-ad
Mario Sergio Fujikawa Ferreira 512dfab14f Add a buffer overflow fix
Submitted by:	kris
Obtained from:	OpenBSD
2001-08-23 21:09:26 +00:00

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