diff options
| author | 2009-03-15 03:09:34 +0100 | |
|---|---|---|
| committer | 2009-03-15 03:09:34 +0100 | |
| commit | 2c3c90055ba597ee9df271403de0dcdd620244f7 (patch) | |
| tree | 71ec6cf2eb61fe91936665b100267f93e7f75c8e /main.c | |
| parent | e619bed09a001f074858fe084dc93d60924beca0 (diff) | |
| download | usbmuxd-2c3c90055ba597ee9df271403de0dcdd620244f7.tar.gz usbmuxd-2c3c90055ba597ee9df271403de0dcdd620244f7.tar.bz2 | |
increased buffer size in client handler and added missing variable
initialization.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -326,7 +326,7 @@ static void *usbmuxd_client_handler_thread(void *arg) | |||
| 326 | struct client_data *cdata; | 326 | struct client_data *cdata; |
| 327 | int result; | 327 | int result; |
| 328 | char *cursor; | 328 | char *cursor; |
| 329 | char buffer[1024]; | 329 | char buffer[65536]; |
| 330 | ssize_t len; | 330 | ssize_t len; |
| 331 | ssize_t maxlen = sizeof(buffer); | 331 | ssize_t maxlen = sizeof(buffer); |
| 332 | uint32_t wlen; | 332 | uint32_t wlen; |
| @@ -474,7 +474,7 @@ static void *usbmuxd_client_init_thread(void *arg) | |||
| 474 | // int sent_result; | 474 | // int sent_result; |
| 475 | // iphone_error_t err; | 475 | // iphone_error_t err; |
| 476 | 476 | ||
| 477 | iphone_device_t phone; | 477 | iphone_device_t phone = NULL; |
| 478 | struct device_use_info *cur_dev = NULL; | 478 | struct device_use_info *cur_dev = NULL; |
| 479 | 479 | ||
| 480 | if (!arg) { | 480 | if (!arg) { |
