diff options
Diffstat (limited to 'sys/dev/sound/isa/sb.c')
-rw-r--r-- | sys/dev/sound/isa/sb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/isa/sb.c b/sys/dev/sound/isa/sb.c index 2b2e84a..06599ec 100644 --- a/sys/dev/sound/isa/sb.c +++ b/sys/dev/sound/isa/sb.c @@ -739,7 +739,8 @@ sb_dsp_init(snddev_info *d, struct isa_device *dev) } - sprintf(d->name, fmt, (d->bd_id >> 8) &0xff, d->bd_id & 0xff); + snprintf(d->name, sizeof(d->name), + fmt, (d->bd_id >> 8) &0xff, d->bd_id & 0xff); sb_mix_init(d); } |