diff options
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udevadm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/udev/udevadm.c b/udev/udevadm.c index 00c2350d35..21b7f616c3 100644 --- a/udev/udevadm.c +++ b/udev/udevadm.c @@ -35,7 +35,11 @@ static void log_fn(struct udev *udev, int priority, fprintf(stderr, "%s: ", fn); vfprintf(stderr, format, args); } else { - vfprintf(stderr, format, args); + va_list args2; + + va_copy(args2, args); + vfprintf(stderr, format, args2); + va_end(args2); vsyslog(priority, format, args); } } |