From 9bc34f7ce14c4401e6ee449f9eeb2c9222fbe756 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 24 Dec 1997 18:56:03 +0000 Subject: Use snprintf rather than printf out of paranoia Obtained from: OpenBSD --- libexec/bootpd/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec/bootpd/report.c') diff --git a/libexec/bootpd/report.c b/libexec/bootpd/report.c index 4f7f03616a2a..e754a3013c2e 100644 --- a/libexec/bootpd/report.c +++ b/libexec/bootpd/report.c @@ -111,7 +111,7 @@ report(priority, fmt, va_alist) #else va_start(ap); #endif - vsprintf(buf, fmt, ap); + vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); /* -- cgit v1.3