From: Joakim Plate Date: Sat, 29 Dec 2012 19:32:59 +0000 (+0100) Subject: filebundle: always open files as binary X-Git-Tag: v3.5~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=426117f006e3c44226533372e85f168eeefb4112;p=thirdparty%2Ftvheadend.git filebundle: always open files as binary If files have wrong file endings the stated lenghts won't match total data read from file. --- diff --git a/src/filebundle.c b/src/filebundle.c index 77e335e75..81993d037 100644 --- a/src/filebundle.c +++ b/src/filebundle.c @@ -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);