why tf did i use memcpy for strings
parent
255eb07d31
commit
3dffb242c3
|
@ -212,7 +212,7 @@ void device_event_callback(const idevice_event_t *event, void *user_data) {
|
||||||
print_err("[iOS: INFO] iDevice added, udid: %s\n", event->udid);
|
print_err("[iOS: INFO] iDevice added, udid: %s\n", event->udid);
|
||||||
|
|
||||||
ios_thread_ctx *args = malloc(sizeof(ios_thread_ctx));
|
ios_thread_ctx *args = malloc(sizeof(ios_thread_ctx));
|
||||||
memcpy(args->remote_udid, event->udid, strlen(event->udid));
|
strcpy_s(args->remote_udid, 41, event->udid);
|
||||||
args->device = NULL;
|
args->device = NULL;
|
||||||
args->connection = NULL;
|
args->connection = NULL;
|
||||||
args->exit_flag = ATOMIC_VAR_INIT(false);
|
args->exit_flag = ATOMIC_VAR_INIT(false);
|
||||||
|
|
Loading…
Reference in New Issue