From 5a4181c31df9e925f3e6c0b978bf54e66629ee52 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 24 Jul 1997 08:51:16 +0000 Subject: Better bounds checking. svn path=/trunk/; revision=1178 --- driver.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index c3224b9a..aba38f09 100644 --- a/driver.c +++ b/driver.c @@ -1747,7 +1747,11 @@ va_dcl #else va_start(ap); #endif +#ifdef HAVE_VSNPRINTF + vsnprintf(buf + strlen(buf), sizeof(buf), fmt, ap); +#else vsprintf(buf + strlen(buf), fmt, ap); +#endif va_end(ap); strcat(buf, "\r\n"); @@ -1817,7 +1821,11 @@ va_dcl #else va_start(ap); #endif +#ifdef HAVE_VSNPRINTF + vsnprintf(buf + strlen(buf), sizeof(buf), fmt, ap); +#else vsprintf(buf + strlen(buf), fmt, ap); +#endif va_end(ap); strcat(buf, "\r\n"); -- cgit v1.2.3