1 --- a/drivers/sound/sound_core.c
2 +++ b/drivers/sound/sound_core.c
3 @@ -174,9 +174,9 @@ static int sound_insert_unit(struct soun
7 - sprintf (name_buf, "%s", name);
8 + snprintf (name_buf, sizeof(name_buf), "%s", name);
10 - sprintf (name_buf, "%s%d", name, (r - low) / SOUND_STEP);
11 + snprintf (name_buf, sizeof(name_buf), "%s%d", name, (r - low) / SOUND_STEP);
12 s->de = devfs_register (devfs_handle, name_buf,
13 DEVFS_FL_NONE, SOUND_MAJOR, s->unit_minor,
14 S_IFCHR | mode, fops, NULL);
15 @@ -507,9 +507,9 @@ int soundcore_open(struct inode *inode,
16 * ALSA toplevel modules for soundcards, thus we need
17 * load them at first. [Jaroslav Kysela <perex@jcu.cz>]
19 - sprintf(mod, "sound-slot-%i", unit>>4);
20 + snprintf(mod, sizeof(mod), "sound-slot-%i", unit>>4);
22 - sprintf(mod, "sound-service-%i-%i", unit>>4, chain);
23 + snprintf(mod, sizeof(mod), "sound-service-%i-%i", unit>>4, chain);
25 spin_lock(&sound_loader_lock);
26 s = __look_for_unit(chain, unit);