[iso] make the lookup for updatable .cfg file more generic

* For ESET and other ISOs, such as Arch derivatives
* Closes #1013
This commit is contained in:
Pete Batard 2017-11-01 12:30:29 +00:00
parent fa94abcc8e
commit 63eb747cde
3 changed files with 17 additions and 18 deletions

View file

@ -1131,7 +1131,8 @@ char* replace_in_token_data(const char* filename, const char* token, const char*
}
// Check the input file's BOM and create an output file with the same
if (fread(&bom, sizeof(bom), 1, fd_in) != 1) {
uprintf("Could not read file '%s'\n", filename);
if (!feof(fd_in))
uprintf("Could not read file '%s'\n", filename);
goto out;
}
switch(bom) {