aboutsummaryrefslogtreecommitdiff
path: root/libntp/msyslog.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-05-10 15:15:56 +0000
committerCy Schubert <cy@FreeBSD.org>2024-05-26 22:55:52 +0000
commit1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad (patch)
tree85801af20e3b694584668aeb39ecec75ee71f72c /libntp/msyslog.c
parentab1f1aa8333369a83ff284848fc3fc2e52d5f29f (diff)
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);
}