diff options
| author | 2015-01-29 20:23:06 +0100 | |
|---|---|---|
| committer | 2015-01-29 20:23:06 +0100 | |
| commit | 16a329e152d8573aed882c8a4c0d65f403ce3a48 (patch) | |
| tree | 3c8f740cbc1283a47925b56eeaf8305481459a8e /src/libirecovery.c | |
| parent | 3249bc11252a3fc53b36b61def3eac27d5929e09 (diff) | |
| download | libirecovery-16a329e152d8573aed882c8a4c0d65f403ce3a48.tar.gz libirecovery-16a329e152d8573aed882c8a4c0d65f403ce3a48.tar.bz2 | |
Add large file support
Diffstat (limited to 'src/libirecovery.c')
| -rw-r--r-- | src/libirecovery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index d632b63..fa0f417 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -1129,9 +1129,9 @@ IRECV_API irecv_error_t irecv_send_file(irecv_client_t client, const char* filen | |||
| 1129 | return IRECV_E_FILE_NOT_FOUND; | 1129 | return IRECV_E_FILE_NOT_FOUND; |
| 1130 | } | 1130 | } |
| 1131 | 1131 | ||
| 1132 | fseek(file, 0, SEEK_END); | 1132 | fseeko(file, 0, SEEK_END); |
| 1133 | long length = ftell(file); | 1133 | long length = ftello(file); |
| 1134 | fseek(file, 0, SEEK_SET); | 1134 | fseeko(file, 0, SEEK_SET); |
| 1135 | 1135 | ||
| 1136 | char* buffer = (char*) malloc(length); | 1136 | char* buffer = (char*) malloc(length); |
| 1137 | if (buffer == NULL) { | 1137 | if (buffer == NULL) { |
