diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/idevice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevice.c b/src/idevice.c index adf47f4..22d57e3 100644 --- a/src/idevice.c +++ b/src/idevice.c | |||
@@ -284,7 +284,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_get_device_list_extended(idevice_in | |||
284 | newlist[newcount]->conn_data = NULL; | 284 | newlist[newcount]->conn_data = NULL; |
285 | } else if (dev_list[i].conn_type == CONNECTION_TYPE_NETWORK) { | 285 | } else if (dev_list[i].conn_type == CONNECTION_TYPE_NETWORK) { |
286 | newlist[newcount]->conn_type = CONNECTION_NETWORK; | 286 | newlist[newcount]->conn_type = CONNECTION_NETWORK; |
287 | size_t addrlen = dev_list[i].conn_data[0]; | 287 | size_t addrlen = ((uint8_t*)dev_list[i].conn_data)[0]; |
288 | newlist[newcount]->conn_data = malloc(addrlen); | 288 | newlist[newcount]->conn_data = malloc(addrlen); |
289 | memcpy(newlist[newcount]->conn_data, dev_list[i].conn_data, addrlen); | 289 | memcpy(newlist[newcount]->conn_data, dev_list[i].conn_data, addrlen); |
290 | } | 290 | } |