use large file support seek
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 7 Oct 2013 06:13:16 +0000 (06:13 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 7 Oct 2013 06:13:16 +0000 (06:13 +0000)
src/server/server.c

index 5431725..a42f931 100644 (file)
@@ -149,7 +149,7 @@ file_reader(void *cls, uint64_t pos, char *buf, int max)
 {
        FILE *file = cls;
 
-       fseek(file, pos, SEEK_SET);
+       fseeko(file, pos, SEEK_SET);
        return fread(buf, 1, max, file);
 }