summaryrefslogtreecommitdiff
path: root/sys/dev/isa/it.c
diff options
context:
space:
mode:
authorOleg Safiullin <form@cvs.openbsd.org>2008-04-07 17:50:38 +0000
committerOleg Safiullin <form@cvs.openbsd.org>2008-04-07 17:50:38 +0000
commit566153f3ee917da49481cd93706d7c724664d7eb (patch)
tree41e7b0371060867a90b106582bff87e0453ac1e9 /sys/dev/isa/it.c
parentb1dc8285873d8aef3b96111ab4fed1de58fc2db4 (diff)
snprintf "%s" -> strlcpy
Diffstat (limited to 'sys/dev/isa/it.c')
-rw-r--r--sys/dev/isa/it.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index b14c2934e52..658dfc8669b 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.31 2008/04/07 17:37:58 form Exp $ */
+/* $OpenBSD: it.c,v 1.32 2008/04/07 17:50:37 form Exp $ */
/*
* Copyright (c) 2007-2008 Oleg Safiullin <form@pdp-11.org.ru>
@@ -247,9 +247,8 @@ it_attach(struct device *parent, struct device *self, void *aux)
sc->sc_sensors[i].type = it_sensors[i].type;
if (it_sensors[i].desc != NULL)
- snprintf(sc->sc_sensors[i].desc,
- sizeof(sc->sc_sensors[i].desc), "%s",
- it_sensors[i].desc);
+ strlcpy(sc->sc_sensors[i].desc, it_sensors[i].desc,
+ sizeof(sc->sc_sensors[i].desc));
}
/* register update task */