summaryrefslogtreecommitdiff
path: root/sys/dev/ic/awi.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2003-04-27 11:22:55 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2003-04-27 11:22:55 +0000
commitc670c56d6bb9915caf18009083d3515283a25fe1 (patch)
treeffee78ad4ad468acbebd70d511be258d28fdbd52 /sys/dev/ic/awi.c
parentc9c7d16545b1bfad4519f491aa113a57ab7c7b2d (diff)
strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.
Diffstat (limited to 'sys/dev/ic/awi.c')
-rw-r--r--sys/dev/ic/awi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/awi.c b/sys/dev/ic/awi.c
index 245b68677c1..cbaab93411c 100644
--- a/sys/dev/ic/awi.c
+++ b/sys/dev/ic/awi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: awi.c,v 1.11 2002/09/15 22:18:11 deraadt Exp $ */
+/* $OpenBSD: awi.c,v 1.12 2003/04/27 11:22:52 ho Exp $ */
/* $NetBSD: awi.c,v 1.26 2000/07/21 04:48:55 onoe Exp $ */
/*-
@@ -261,7 +261,7 @@ ether_sprintf(enaddr)
{
static char strbuf[18];
- sprintf(strbuf, "%6D", enaddr, ":");
+ snprintf(strbuf, sizeof strbuf, "%6D", enaddr, ":");
return strbuf;
}
#endif