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 --- socket.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 59c1f64f..7a30e3a8 100644 --- a/socket.c +++ b/socket.c @@ -90,7 +90,11 @@ va_dcl { #else va_start(ap); #endif +#ifdef HAVE_VSNPRINTF + vsnprintf(buf, sizeof(buf), format, ap); +#else vsprintf(buf, format, ap); +#endif va_end(ap); return SockWrite(sock, buf, strlen(buf)); -- cgit v1.2.3