1 Index: linux-2.4.35.4/drivers/sound/sound_core.c
2 ===================================================================
3 --- linux-2.4.35.4.orig/drivers/sound/sound_core.c 2007-12-15 05:19:38.946640480 +0100
4 +++ linux-2.4.35.4/drivers/sound/sound_core.c 2007-12-15 05:20:01.199908622 +0100
9 - sprintf (name_buf, "%s", name);
10 + snprintf (name_buf, sizeof(name_buf), "%s", name);
12 - sprintf (name_buf, "%s%d", name, (r - low) / SOUND_STEP);
13 + snprintf (name_buf, sizeof(name_buf), "%s%d", name, (r - low) / SOUND_STEP);
14 s->de = devfs_register (devfs_handle, name_buf,
15 DEVFS_FL_NONE, SOUND_MAJOR, s->unit_minor,
16 S_IFCHR | mode, fops, NULL);
18 * ALSA toplevel modules for soundcards, thus we need
19 * load them at first. [Jaroslav Kysela <perex@jcu.cz>]
21 - sprintf(mod, "sound-slot-%i", unit>>4);
22 + snprintf(mod, sizeof(mod), "sound-slot-%i", unit>>4);
24 - sprintf(mod, "sound-service-%i-%i", unit>>4, chain);
25 + snprintf(mod, sizeof(mod), "sound-service-%i-%i", unit>>4, chain);
27 spin_lock(&sound_loader_lock);
28 s = __look_for_unit(chain, unit);