From 8f01a6ee7f4a0da815c96882a67cc3e83590b3e6 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 22 Oct 2014 17:51:41 +0200 Subject: common: Use ftello(), fseeko() variants for large file support --- src/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.c b/src/common.c index 5e061eb..6451e07 100644 --- a/src/common.c +++ b/src/common.c @@ -160,8 +160,8 @@ int read_file(const char* filename, void** data, size_t* size) { return -1; } - fseek(file, 0, SEEK_END); - length = ftell(file); + fseeko(file, 0, SEEK_END); + length = ftello(file); rewind(file); buffer = (char*) malloc(length); -- cgit v1.1-32-gdbae