mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-27 16:10:48 +01:00
CLI: fix infinite loop with non-ascii filenames
This commit is contained in:
parent
37988304a5
commit
ef91273ca3
@ -79,7 +79,8 @@ void replace_filename(char* dst, size_t dstsize, cli_config_t* cfg, VGMSTREAM* v
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* not recognized */
|
/* 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
|
/* copy result to buf again, so it can be used as format in next replace
|
||||||
|
Loading…
Reference in New Issue
Block a user