diff options
Diffstat (limited to 'sys/dev/ic/awi.c')
-rw-r--r-- | sys/dev/ic/awi.c | 4 |
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 |