Replaced strncpy to strcpy