diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-03 17:50:18 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-03 17:50:18 +0000 |
commit | d97ee3033df7f7be52c44f4cf3647956f26175bc (patch) | |
tree | 220839f6d36a2e22c68977727e9e6e54459d14ce | |
parent | 2acf3242cd1afe022aa9b4281d6c24c6f9f866ea (diff) |
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
-rw-r--r-- | stream/cookies.c | 2 |
1 files changed, 1 insertions, 1 deletions
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."); |