summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/it.c
diff options
context:
space:
mode:
authorform <form@openbsd.org>2008-04-07 17:37:58 +0000
committerform <form@openbsd.org>2008-04-07 17:37:58 +0000
commitf37985ef92b10f1163ec916ca1fc5523b5ad6d4d (patch)
tree540da2256a15e8203eaf94f68fc2fcf6162e1813 /sys/dev/isa/it.c
parentIn _dmamem_map(), be sure to convert the address from the device view to (diff)
downloadwireguard-openbsd-f37985ef92b10f1163ec916ca1fc5523b5ad6d4d.tar.xz
wireguard-openbsd-f37985ef92b10f1163ec916ca1fc5523b5ad6d4d.zip
fix snprintf usage
Diffstat (limited to 'sys/dev/isa/it.c')
-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);
}