staging: fbtft: use strncpy instead of strcpy
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 5 Sep 2015 13:43:43 +0000 (19:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:53 +0000 (18:24 -0700)
commiteb6a2dbf32a4ea2fa94f742f6494f661a807fb45
tree132bdd39824b67dd9b0638fc5a8c0080c27675e9
parente1b32e1e89ee69fd62e6d3bd781d017748889e00
staging: fbtft: use strncpy instead of strcpy

Using strcpy() is a security risk as the destination buffer size is not
checked and we may over-run the buffer. Use strncpy() instead, while
mentioning the buffer size leaving place for the NULL termination.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft_device.c