From 1eec0b50f81d225bdf62c039c413d5adc5648e77 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Fri, 31 Oct 2008 18:52:28 +0100 Subject: reduce chunk size in AFC since it was generating error for large file fix include in afccheck.c --- dev/afccheck.c | 1 + src/AFC.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/afccheck.c b/dev/afccheck.c index 028110a..0ff420a 100644 --- a/dev/afccheck.c +++ b/dev/afccheck.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include diff --git a/src/AFC.c b/src/AFC.c index 144efe1..54ea1bb 100644 --- a/src/AFC.c +++ b/src/AFC.c @@ -794,7 +794,7 @@ iphone_afc_write_file(iphone_afc_client_t client, iphone_afc_file_t file, const char *data, int length, uint32_t * bytes) { char *acknowledgement = NULL; - const int MAXIMUM_WRITE_SIZE = 1 << 16; + const int MAXIMUM_WRITE_SIZE = 1 << 15; uint32 zero = 0, bytes_loc = 0, segments = (length / MAXIMUM_WRITE_SIZE), current_count = 0, i = 0; char *out_buffer = NULL; -- cgit v1.1-32-gdbae