summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/msyslog.c
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2002-11-04 19:36:11 +0000
committerroberto <roberto@FreeBSD.org>2002-11-04 19:36:11 +0000
commita85d9ae25e8e8696677bc30feb6eaf7fc150e529 (patch)
tree5071c8dbfd7605eec15909cabca2296957573ac7 /contrib/ntp/libntp/msyslog.c
parent8d541346f2b91896a9ef53cafe2b81898978ccf3 (diff)
downloadFreeBSD-src-a85d9ae25e8e8696677bc30feb6eaf7fc150e529.zip
FreeBSD-src-a85d9ae25e8e8696677bc30feb6eaf7fc150e529.tar.gz
Virgin import of ntpd 4.1.1b
Diffstat (limited to 'contrib/ntp/libntp/msyslog.c')
-rw-r--r--contrib/ntp/libntp/msyslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ntp/libntp/msyslog.c b/contrib/ntp/libntp/msyslog.c
index 9864881..52da608 100644
--- a/contrib/ntp/libntp/msyslog.c
+++ b/contrib/ntp/libntp/msyslog.c
@@ -117,7 +117,7 @@ void msyslog(int level, const char *fmt, ...)
*n++ = '\n';
*n = '\0';
- vsprintf(buf, nfmt, ap);
+ vsnprintf(buf, sizeof(buf), nfmt, ap);
#if !defined(VMS) && !defined (SYS_VXWORKS)
if (syslogit)
#ifndef SYS_WINNT
OpenPOWER on IntegriCloud