summaryrefslogtreecommitdiffstats
path: root/sbin/dump/optr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dump/optr.c')
-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