diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2003-04-27 11:22:55 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2003-04-27 11:22:55 +0000 |
commit | c670c56d6bb9915caf18009083d3515283a25fe1 (patch) | |
tree | ffee78ad4ad468acbebd70d511be258d28fdbd52 /sys/dev/isa/opl_sb.c | |
parent | c9c7d16545b1bfad4519f491aa113a57ab7c7b2d (diff) |
strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.
Diffstat (limited to 'sys/dev/isa/opl_sb.c')
-rw-r--r-- | sys/dev/isa/opl_sb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/opl_sb.c b/sys/dev/isa/opl_sb.c index 0e69cceff8c..d817c6b71be 100644 --- a/sys/dev/isa/opl_sb.c +++ b/sys/dev/isa/opl_sb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: opl_sb.c,v 1.2 2002/03/14 01:26:56 millert Exp $ */ +/* $OpenBSD: opl_sb.c,v 1.3 2003/04/27 11:22:53 ho Exp $ */ /* $NetBSD: opl_sb.c,v 1.4 1998/12/08 14:26:57 augustss Exp $ */ /* @@ -107,7 +107,7 @@ opl_sb_attach(parent, self, aux) sc->offs = 0; sc->spkrctl = sbdsp_speaker_ctl; sc->spkrarg = ssc; - strcpy(sc->syn.name, "SB "); + strlcpy(sc->syn.name, "SB ", sizeof sc->syn.name); opl_attach(sc); } |