summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2014-10-26 03:45:30 +0000
committerBrad Smith <brad@cvs.openbsd.org>2014-10-26 03:45:30 +0000
commit1d9564ba9fa4d1e6cb30289f700724f32f8dd670 (patch)
tree1c5ef6cd4ad6a00a972c3698d3dd8246f2020f9d
parent5fad132b13e0d15c356766ede8b2662588b9db35 (diff)
Add a format specifier for the printf.
ok guenther@
-rw-r--r--sbin/sysctl/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 53a7409d66f..d5836a66612 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.205 2014/10/25 03:18:13 lteo Exp $ */
+/* $OpenBSD: sysctl.c,v 1.206 2014/10/26 03:45:29 brad Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -2556,7 +2556,7 @@ print_sensor(struct sensor *s)
name = "unknown";
break;
}
- printf(name);
+ printf("%s", name);
break;
case SENSOR_TIMEDELTA:
printf("%.6f secs", s->value / 1000000000.0);