diff options
author | Dan Carpenter <[email protected]> | 2010-09-16 20:13:47 +0200 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2010-09-16 22:50:51 +0200 |
commit | 26e34e9e15aa48e9375ea4e97bc4234ad995b7c8 (patch) | |
tree | 803a156b7a34a76bce5576c6c68fc0061e4372f9 /net/unix/af_unix.c | |
parent | 4437ecdc7190302ed02fb1467c116aff29c325b2 (diff) |
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions