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

reimar subversion at mplayerhq.hu
Wed Feb 3 18:50:18 CET 2010


Author: reimar
Date: Wed Feb  3 18:50:18 2010
New Revision: 30496

Log:
Fix argument order for lseek, fixes cookie loading in Windows and in general
everywhere where SEEK_SET != 0.

Modified:
   trunk/stream/cookies.c

Modified: trunk/stream/cookies.c
==============================================================================
--- trunk/stream/cookies.c	Wed Feb  3 14:14:09 2010	(r30495)
+++ trunk/stream/cookies.c	Wed Feb  3 18:50:18 2010	(r30496)
@@ -133,7 +133,7 @@ static char *load_file(const char *filen
 	return NULL;
     }
 
-    lseek(fd, SEEK_SET, 0);
+    lseek(fd, 0, SEEK_SET);
 
     if (!(buffer = malloc(*length + 1))) {
 	mp_msg(MSGT_NETWORK, MSGL_V, "Could not malloc.");


More information about the MPlayer-cvslog mailing list