Changed strncpy to strscpy.