Changed strncpy to strcpy