drivers/video: fsl-diu-fb: fix potential memcpy buffer overflow bug
authorTimur Tabi <timur@freescale.com>
Thu, 15 Sep 2011 21:44:54 +0000 (16:44 -0500)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 18 Sep 2011 20:08:57 +0000 (20:08 +0000)
commitec02dd23dc423cf019f660a63ac9c9d54840a473
tree746c6f1e2284eebdad5d759983c3351b076045e9
parentf8c6bf6ae677663adbf91b882755e3f757fb1669
drivers/video: fsl-diu-fb: fix potential memcpy buffer overflow bug

It makes no sense to limit the size of a strncpy() to the length of
the source string.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/fsl-diu-fb.c