From 61e0cb5dddb89ddab1d68791eb28d892c114622f Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 3 Mar 2013 09:58:49 +0100 Subject: Open files in binary mode on windows So that the Windows' C library doesn't munge line endings --- p11-kit/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p11-kit/conf.c') 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) && -- cgit v1.1