why tf did i use memcpy for strings

This commit is contained in:
beerpsi 2023-12-31 19:34:23 +07:00
parent 255eb07d31
commit 3dffb242c3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
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->connection = NULL;
args->exit_flag = ATOMIC_VAR_INIT(false);