Dan Carpenter 26e34e9e15 ALSA: usb/mixer: remove bogus cast
"uinfo->value.enumerated.item" is an unsigned int.  If it's negative
when we do the comparison:
	if ((int)uinfo->value.enumerated.item >= cval->max)
then we would read past the end of the array on the next line.

I also changed the strcpy() to strlcpy() out of paranoia.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-09-16 22:50:51 +02:00
..
2010-09-09 10:51:45 +02:00
2010-03-05 08:17:14 +01:00
2010-03-05 08:17:14 +01:00
2010-09-16 22:50:51 +02:00
2010-09-03 22:38:52 +02:00
2010-03-05 08:17:14 +01:00
2010-03-05 08:17:14 +01:00
2010-08-14 10:30:08 +02:00
2010-03-05 08:17:14 +01:00