[media] tw686x: avoid going past array
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 26 Apr 2016 09:33:06 +0000 (06:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 26 Apr 2016 09:38:53 +0000 (06:38 -0300)
commit45c175c4ae9695d6d2f30a45ab7f3866cfac184b
treeb0ce8cf5c6fd23d828a6520138fd8ee598019cde
parent363d79f1d5bd09158cc28db543ca18549a5d7e52
[media] tw686x: avoid going past array

Fix those two warnings:
drivers/media/pci/tw686x/tw686x-video.c:69 tw686x_fields_map() error: buffer overflow 'std_525_60' 31 <= 31
drivers/media/pci/tw686x/tw686x-video.c:73 tw686x_fields_map() error: buffer overflow 'std_625_50' 26 <= 26

I had those changes at the last version of my patch, but I ended
by merging the previous version by mistake.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/tw686x/tw686x-video.c