From a7d7b470ae1114d54863a06ce1b38ae3ca52f0f5 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 10 Nov 1999 18:11:16 +0000 Subject: [PATCH] vsprintf -> vsnprintf in msg(). --- sbin/dump/optr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c index 6a022d147892..71dd8d1f6318 100644 --- a/sbin/dump/optr.c +++ b/sbin/dump/optr.c @@ -328,7 +328,7 @@ msg(fmt, va_alist) (void) vfprintf(stderr, fmt, ap); (void) fflush(stdout); (void) fflush(stderr); - (void) vsprintf(lastmsg, fmt, ap); + (void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap); va_end(ap); }