summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-03-15 03:09:34 +0100
committerGravatar Nikias Bassen2009-03-15 03:09:34 +0100
commit2c3c90055ba597ee9df271403de0dcdd620244f7 (patch)
tree71ec6cf2eb61fe91936665b100267f93e7f75c8e /main.c
parente619bed09a001f074858fe084dc93d60924beca0 (diff)
downloadusbmuxd-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 8009ae2..9e487fe 100644
--- a/main.c
+++ b/main.c
@@ -326,7 +326,7 @@ static void *usbmuxd_client_handler_thread(void *arg)
struct client_data *cdata;
int result;
char *cursor;
- char buffer[1024];
+ char buffer[65536];
ssize_t len;
ssize_t maxlen = sizeof(buffer);
uint32_t wlen;
@@ -474,7 +474,7 @@ static void *usbmuxd_client_init_thread(void *arg)
// int sent_result;
// iphone_error_t err;
- iphone_device_t phone;
+ iphone_device_t phone = NULL;
struct device_use_info *cur_dev = NULL;
if (!arg) {