Commit 1eec0b50 authored by Jonathan Beck's avatar Jonathan Beck

reduce chunk size in AFC since it was generating error for large file

fix include in afccheck.c
parent 217f4ea7
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <glib.h> #include <glib.h>
......
...@@ -794,7 +794,7 @@ iphone_afc_write_file(iphone_afc_client_t client, iphone_afc_file_t file, ...@@ -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) const char *data, int length, uint32_t * bytes)
{ {
char *acknowledgement = NULL; 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; uint32 zero = 0, bytes_loc = 0, segments = (length / MAXIMUM_WRITE_SIZE), current_count = 0, i = 0;
char *out_buffer = NULL; char *out_buffer = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment