From a3b3a9db5d26bef1e62054c95c3d7701de5110d5 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Sat, 22 Aug 2015 12:24:13 +0300 Subject: [PATCH] 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-format-patch failed