From a2ef98093f3e40a889c12ecca6e236505fdcbf05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 30 Oct 2010 11:35:28 +0200 Subject: Using binary mode when checking configfile. New configfile would not be written only when switching binaries for different platforms. --- src/xine-engine/configfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c index 484d1d16f..507f0a81d 100644 --- a/src/xine-engine/configfile.c +++ b/src/xine-engine/configfile.c @@ -1012,8 +1012,8 @@ void xine_config_save (xine_t *xine, const char *filename) { lprintf("backing up configfile to %s\n", temp); - f_backup = fopen(temp, "w"); - f_config = fopen(filename, "r"); + f_backup = fopen(temp, "wb"); + f_config = fopen(filename, "rb"); if (f_config && f_backup && (stat(filename, &config_stat) == 0)) { char *buf = NULL; -- cgit v1.2.3