diff options
author | Martin Szulecki | 2014-10-22 17:51:41 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-10-22 17:51:41 +0200 |
commit | 8f01a6ee7f4a0da815c96882a67cc3e83590b3e6 (patch) | |
tree | af406a0d8a13344d21142e66ecc00e6a946a296c | |
parent | 78e100ed92417f978732def92e07c6010ee33ce5 (diff) | |
download | idevicerestore-8f01a6ee7f4a0da815c96882a67cc3e83590b3e6.tar.gz idevicerestore-8f01a6ee7f4a0da815c96882a67cc3e83590b3e6.tar.bz2 |
common: Use ftello(), fseeko() variants for large file support
-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); |