commit | a3b3a9db5d26bef1e62054c95c3d7701de5110d5 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Aug 22 12:24:13 2015 +0300 |
committer | Takashi Iwai <tiwai@suse.de> | Sat Aug 22 11:36:26 2015 +0200 |
tree | f43a9115bf6e65644c66aacd07aeb1f905188c26 | |
parent | f09d4f26f6192ec9b060047cc7126e01980bb36c [diff] |
ALSA: hdsp: silence a sprinft() overflow warning card->shortname is a 32 char string so the sprintf() can theoretically overflow. snd_rawmidi_new() can accept strings up to 64 bytes long. I have made the temporay buf[] array 40 bytes long and changed the sprintf() to snprintf(). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>