fixed incorrect strncpy length argument