6b929c59fb
- Merge in a whole bunch of various fixes from upstream and add comments for the existing fixes which didn't have a comment in the patch. From Brad; OK sthen@
19 lines
723 B
Plaintext
19 lines
723 B
Plaintext
$OpenBSD: patch-src_xine-engine_configfile_c,v 1.2 2011/05/11 09:05:55 dcoppa Exp $
|
|
|
|
Using binary mode when checking configfile. New configfile would not be
|
|
written only when switching binaries for different platforms.
|
|
|
|
--- src/xine-engine/configfile.c.orig Sat Nov 13 13:39:27 2010
|
|
+++ src/xine-engine/configfile.c Sat Nov 13 13:39:59 2010
|
|
@@ -1012,8 +1012,8 @@ void xine_config_save (xine_t *xine, const char *filen
|
|
|
|
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;
|