summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/optr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c
index 8c1f3c1..3029dd3 100644
--- a/sbin/dump/optr.c
+++ b/sbin/dump/optr.c
@@ -233,20 +233,19 @@ void
msg(const char *fmt, ...)
{
va_list ap;
- va_list ap2;
(void) fprintf(stderr," DUMP: ");
#ifdef TDEBUG
(void) fprintf(stderr, "pid=%d ", getpid());
#endif
va_start(ap, fmt);
- va_copy(ap2, ap);
(void) vfprintf(stderr, fmt, ap);
(void) fflush(stdout);
(void) fflush(stderr);
- (void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap2);
va_end(ap);
- va_end(ap2);
+ va_start(ap, fmt);
+ (void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap);
+ va_end(ap);
}
void
OpenPOWER on IntegriCloud