summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-11-10 18:11:16 +0000
committerimp <imp@FreeBSD.org>1999-11-10 18:11:16 +0000
commit50a13e9fb7774df3c5547d76dc8fa130f96afb01 (patch)
tree48f0ef0b9f0203db48da2a425e1a75946628e16b /sbin
parent6f243c5ca7afe3130205a974027f0fd0b8149958 (diff)
downloadFreeBSD-src-50a13e9fb7774df3c5547d76dc8fa130f96afb01.zip
FreeBSD-src-50a13e9fb7774df3c5547d76dc8fa130f96afb01.tar.gz
vsprintf -> vsnprintf in msg().
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/optr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c
index 6a022d1..71dd8d1 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);
}
OpenPOWER on IntegriCloud