use strncpy instead of strcpy

Signed-off-by: Constantin MUSCĂ <constantin.musca@gmail.com>