CLI: fix infinite loop with non-ascii filenames

This commit is contained in:
bnnm 2024-11-23 16:01:03 +01:00
parent 37988304a5
commit ef91273ca3

View File

@ -79,7 +79,8 @@ void replace_filename(char* dst, size_t dstsize, cli_config_t* cfg, VGMSTREAM* v
}
else {
/* not recognized */
continue;
// TO-DO should move buf or swap "?" with "_"? may happen with non-ascii on Windows; for now break to avoid infinite loops
break;
}
/* copy result to buf again, so it can be used as format in next replace