summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bgpctl/bgpctl.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 0a5364ae8c0..fa19ea875b4 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.179 2015/07/18 16:12:03 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.180 2015/07/19 06:57:27 guenther Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -1917,9 +1917,13 @@ log_warn(const char *emsg, ...)
}
void
-fatal(const char *emsg)
+fatal(const char *emsg, ...)
{
- err(1, "%s", emsg);
+ va_list ap;
+
+ va_start(ap, emsg);
+ verr(1, emsg, ap);
+ va_end(ap);
}
void