summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Safiullin <form@cvs.openbsd.org>2008-04-07 17:37:59 +0000
committerOleg Safiullin <form@cvs.openbsd.org>2008-04-07 17:37:59 +0000
commitb1dc8285873d8aef3b96111ab4fed1de58fc2db4 (patch)
tree6adc00f8546512fc5506e5454c17749e25f9e8dd
parenta6408aa270ee4114d7139e54af200cf51f31d887 (diff)
fix snprintf usage
-rw-r--r--sys/dev/isa/it.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index 0f2ccc47cb0..b14c2934e52 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.30 2008/04/07 09:43:54 form Exp $ */
+/* $OpenBSD: it.c,v 1.31 2008/04/07 17:37:58 form Exp $ */
/*
* Copyright (c) 2007-2008 Oleg Safiullin <form@pdp-11.org.ru>
@@ -248,7 +248,7 @@ it_attach(struct device *parent, struct device *self, void *aux)
if (it_sensors[i].desc != NULL)
snprintf(sc->sc_sensors[i].desc,
- sizeof(sc->sc_sensors[i].desc),
+ sizeof(sc->sc_sensors[i].desc), "%s",
it_sensors[i].desc);
}