summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp')
-rw-r--r--contrib/ntp/libntp/clocktypes.c8
-rw-r--r--contrib/ntp/libntp/msyslog.c2
2 files changed, 8 insertions, 2 deletions
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
OpenPOWER on IntegriCloud