summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2009-07-02 11:27:19 -0400
committerJeff Muizelaar <jmuizelaar@mozilla.com>2009-07-02 11:27:19 -0400
commitd978a7a421dfe2e7afede5e4b29a730f9005344d (patch)
tree43fdbb11da5afc3bf050283dcbabbbec643c8ac4
parent1eb9d057b991005590448d36b12d70a881def1ad (diff)
Open profiles in binary mode.
This was already changed in the mozilla tree but I forgot to commit it here.
-rw-r--r--iccread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iccread.c b/iccread.c
index f3886e0..942102a 100644
--- a/iccread.c
+++ b/iccread.c
@@ -801,7 +801,7 @@ qcms_profile* qcms_profile_from_file(FILE *file)
qcms_profile* qcms_profile_from_path(const char *path)
{
qcms_profile *profile = NULL;
- FILE *file = fopen(path, "r");
+ FILE *file = fopen(path, "rb");
if (file) {
profile = qcms_profile_from_file(file);
fclose(file);