From d97ee3033df7f7be52c44f4cf3647956f26175bc Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 3 Feb 2010 17:50:18 +0000 Subject: Fix argument order for lseek, fixes cookie loading in Windows and in general everywhere where SEEK_SET != 0. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30496 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/cookies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream/cookies.c') diff --git a/stream/cookies.c b/stream/cookies.c index 6c8d5013aa..b7e89c79e6 100644 --- a/stream/cookies.c +++ b/stream/cookies.c @@ -133,7 +133,7 @@ static char *load_file(const char *filename, off_t * length) 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."); -- cgit v1.2.3