From: Dan Carpenter Date: Sat, 22 Aug 2015 09:24:13 +0000 (+0300) Subject: ALSA: hdsp: silence a sprinft() overflow warning X-Git-Tag: omap-for-v4.3/fixes-rc1~91^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3b3a9db5d26bef1e62054c95c3d7701de5110d5;p=pandora-kernel.git 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 Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed