[MPlayer-cvslog] r37383 - trunk/stream/cookies.c

al subversion at mplayerhq.hu
Sun Mar 29 04:38:59 CEST 2015


Author: al
Date: Sun Mar 29 04:38:59 2015
New Revision: 37383

Log:
stream/cookies: Windows: Read the cookies file in binary mode

Patch-by: Gianluigi Tiesi >mplayer netfarm it<

Modified:
   trunk/stream/cookies.c

Modified: trunk/stream/cookies.c
==============================================================================
--- trunk/stream/cookies.c	Sun Mar 29 04:34:23 2015	(r37382)
+++ trunk/stream/cookies.c	Sun Mar 29 04:38:59 2015	(r37383)
@@ -115,7 +115,7 @@ static char *load_file(const char *filen
 
     mp_msg(MSGT_NETWORK, MSGL_V, "Loading cookie file: %s\n", filename);
 
-    fd = open(filename, O_RDONLY);
+    fd = open(filename, O_RDONLY | O_BINARY);
     if (fd < 0) {
 	mp_msg(MSGT_NETWORK, MSGL_V, "Could not open");
 	goto err_out;


More information about the MPlayer-cvslog mailing list