replacing strncpy by memcpy due to gcc8
replacing strncpy by memcpy due to gcc8

gcc 8 higher versions uses -Wstringop-truncation flag
which check the truncation of terminating NUL char from
the source string.
strncpy is replaced with memcpy to avoid error instead
of going to -Wno-stringop-truncation

Signed-off-by: Moorthy Baskar <c8166c8a0437754a3cb5a2f602d785fe72e17999@linaro.org>

shilpa24balaji/wrp-c