diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-03 09:58:49 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-03 10:07:14 +0100 |
commit | 61e0cb5dddb89ddab1d68791eb28d892c114622f (patch) | |
tree | 56d6c5d62ad4a9cd4f25693d9412283c5cb2b229 /p11-kit/conf.c | |
parent | d9076a99c59bb0132b25277a2340f428c9b6c98e (diff) |
Open files in binary mode on windows
So that the Windows' C library doesn't munge line endings
Diffstat (limited to 'p11-kit/conf.c')
-rw-r--r-- | p11-kit/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/conf.c b/p11-kit/conf.c index 28008aa..778ea00 100644 --- a/p11-kit/conf.c +++ b/p11-kit/conf.c @@ -125,7 +125,7 @@ read_config_file (const char* filename, int flags) assert (filename); - f = fopen (filename, "r"); + f = fopen (filename, "rb"); if (f == NULL) { error = errno; if ((flags & CONF_IGNORE_MISSING) && |