ALSA: firewire-tascam: off by one in identify_model()

Let's leave space for the NUL char otherwise the static checkers
complain that we go beyond the end of the array.

Fixes: 53b3ffee78 ('ALSA: firewire-tascam: change device probing processing')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Dan Carpenter 2015-10-19 14:29:27 +03:00 committed by Takashi Iwai
parent 9fa5cf8c54
commit 9a30ae2df2
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ static int identify_model(struct snd_tscm *tscm)
{
struct fw_device *fw_dev = fw_parent_device(tscm->unit);
const u32 *config_rom = fw_dev->config_rom;
char model[8];
char model[9];
unsigned int i;
u8 c;