filebundle: always open files as binary
If files have wrong file endings the stated lenghts won't match total data read from file.
This commit is contained in:
parent
d23f60b031
commit
426117f006
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ fb_file *fb_open2
|
|||
} else {
|
||||
char path[512];
|
||||
snprintf(path, sizeof(path), "%s/%s", dir->d.root, name);
|
||||
FILE *fp = fopen(path, "r");
|
||||
FILE *fp = fopen(path, "rb");
|
||||
if (fp) {
|
||||
struct stat st;
|
||||
lstat(path, &st);
|
||||
|
|
Loading…
Add table
Reference in a new issue