diff options
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 4 |
1 files 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); |