diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-08-22 11:24:13 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-08-22 11:36:26 +0200 |
commit | a3b3a9db5d26bef1e62054c95c3d7701de5110d5 (patch) | |
tree | f43a9115bf6e65644c66aacd07aeb1f905188c26 /sound/hda/ext | |
parent | ALSA: hdac: Remove the usage of key for host stream (diff) | |
download | linux-a3b3a9db5d26bef1e62054c95c3d7701de5110d5.tar.xz linux-a3b3a9db5d26bef1e62054c95c3d7701de5110d5.zip |
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>
Diffstat (limited to 'sound/hda/ext')
0 files changed, 0 insertions, 0 deletions