Minor fix to TWL title name listing.

This commit is contained in:
Steven Smith 2016-04-23 21:26:18 -07:00
parent ca379320af
commit eb0bffd4a9

View File

@ -174,12 +174,9 @@ static Result task_populate_titles_add_twl(populate_titles_data* data, FS_MediaT
char* curr = NULL;
while(currDest < 3 && (curr = strchr(last, '\n')) != NULL) {
if(currDest == 0) {
strncpy(item->name, last, curr - last);
}
strncpy(destinations[currDest++], last, curr - last);
last = curr + 1;
*curr = ' ';
}
strncpy(item->name, title, last - title);