summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/sensors.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2009-01-27 15:21:21 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2009-01-27 15:21:21 +0000
commit644375c860f7f6cd0ca8e6280b546f531488c9e3 (patch)
treea6b1bf22705a4a9856fa1e102381eb962de7d072 /usr.sbin/ntpd/sensors.c
parentd6eddffd850f088a374447b19de986b8f04de577 (diff)
fix printf format specification to print max len 4 for refid,
which may not be null terminated; ok henning@
Diffstat (limited to 'usr.sbin/ntpd/sensors.c')
-rw-r--r--usr.sbin/ntpd/sensors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c
index 3a648f096fc..977032ef573 100644
--- a/usr.sbin/ntpd/sensors.c
+++ b/usr.sbin/ntpd/sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.c,v 1.41 2009/01/26 21:45:11 naddy Exp $ */
+/* $OpenBSD: sensors.c,v 1.42 2009/01/27 15:21:20 stevesk Exp $ */
/*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@@ -136,7 +136,7 @@ sensor_add(int sensordev, char *dxname)
TAILQ_INSERT_TAIL(&conf->ntp_sensors, s, entry);
- log_debug("sensor %s added (weight %d, correction %.6f, refstr %-4s)",
+ log_debug("sensor %s added (weight %d, correction %.6f, refstr %.4s)",
s->device, s->weight, s->correction / 1e6, &s->refid);
}