aboutsummaryrefslogtreecommitdiff
path: root/libntp/msyslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/msyslog.c')
-rw-r--r--libntp/msyslog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libntp/msyslog.c b/libntp/msyslog.c
index a1ba72792595..b72d5c8dc379 100644
--- a/libntp/msyslog.c
+++ b/libntp/msyslog.c
@@ -348,15 +348,14 @@ msyslog(
...
)
{
- char buf[1024];
va_list ap;
va_start(ap, fmt);
- mvsnprintf(buf, sizeof(buf), fmt, ap);
+ mvsyslog(level, fmt, ap);
va_end(ap);
- addto_syslog(level, buf);
}
+
void
mvsyslog(
int level,
@@ -365,6 +364,7 @@ mvsyslog(
)
{
char buf[1024];
+
mvsnprintf(buf, sizeof(buf), fmt, ap);
addto_syslog(level, buf);
}