From a85d9ae25e8e8696677bc30feb6eaf7fc150e529 Mon Sep 17 00:00:00 2001 From: roberto Date: Mon, 4 Nov 2002 19:36:11 +0000 Subject: Virgin import of ntpd 4.1.1b --- contrib/ntp/libntp/clocktypes.c | 8 +++++++- contrib/ntp/libntp/msyslog.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'contrib/ntp/libntp') diff --git a/contrib/ntp/libntp/clocktypes.c b/contrib/ntp/libntp/clocktypes.c index 3e767ce..ec99ba8 100644 --- a/contrib/ntp/libntp/clocktypes.c +++ b/contrib/ntp/libntp/clocktypes.c @@ -92,8 +92,14 @@ struct clktype clktypes[] = { "HOPF_P"}, { REFCLK_JJY, "JJY receiver (40)", "JJY" }, - { REFCLK_ZYFER, "Zyfer GPStarplus receiver (41)", + { REFCLK_TT560, "TrueTime 560 IRIG-B decoder (41)", + "TT_IRIG"}, + { REFCLK_ZYFER, "Zyfer GPStarplus receiver (42)", "GPS_ZYFER" }, + { REFCLK_RIPENCC, "RIPE NCC Trimble driver (43)", + "GPS_RIPENCC" }, + { REFCLK_NEOCLOCK4X, "NeoClock4X DCF77 / TDF receiver (44)", + "NEOCLK4X"}, { -1, "", "" } }; 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 -- cgit v1.1