[kernel] more linux kernel cygwin build fixes
[openwrt.git] / target / linux / generic-2.4 / patches / 222-sound.patch
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
4 }
5
6 if (r == low)
7 - sprintf (name_buf, "%s", name);
8 + snprintf (name_buf, sizeof(name_buf), "%s", name);
9 else
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>]
18 */
19 - sprintf(mod, "sound-slot-%i", unit>>4);
20 + snprintf(mod, sizeof(mod), "sound-slot-%i", unit>>4);
21 request_module(mod);
22 - sprintf(mod, "sound-service-%i-%i", unit>>4, chain);
23 + snprintf(mod, sizeof(mod), "sound-service-%i-%i", unit>>4, chain);
24 request_module(mod);
25 spin_lock(&sound_loader_lock);
26 s = __look_for_unit(chain, unit);
This page took 0.10483 seconds and 5 git commands to generate.