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:
Joakim Plate 2012-12-29 20:32:59 +01:00
parent d23f60b031
commit 426117f006

View file

@ -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);