changeset 30454:c6ccbae868cf

Fix argument order for lseek, fixes cookie loading in Windows and in general everywhere where SEEK_SET != 0.
author reimar
date Wed, 03 Feb 2010 17:50:18 +0000
parents 60fb098fe8cf
children cfebff6a5ef9
files stream/cookies.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/cookies.c	Wed Feb 03 13:14:09 2010 +0000
+++ b/stream/cookies.c	Wed Feb 03 17:50:18 2010 +0000
@@ -133,7 +133,7 @@
 	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.");