blob: a00d84cf4930073539225935634bb168c1bdeea8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-aa,v 1.1.1.1 2005/05/25 10:29:01 agc Exp $
--- output.c 2005/05/25 10:09:24 1.1
+++ output.c 2005/05/25 10:11:08
@@ -63,9 +63,12 @@
/* print the rest of the arguments in standard printf style */
va_start(arg_list, format);
retval = vfprintf(Audit_log, format, arg_list);
- if ((level < VERBOSE) || (verbose && level == VERBOSE))
- vfprintf(ostream, format, arg_list);
va_end(arg_list);
+ if ((level < VERBOSE) || (verbose && level == VERBOSE)) {
+ va_start(arg_list, format);
+ vfprintf(ostream, format, arg_list);
+ va_end(arg_list);
+ }
return retval;
}
|