From aef5246b8a82ba2921d9cf88cc0702094a7a08ad Mon Sep 17 00:00:00 2001 From: Peter Wallace Date: Wed, 15 Nov 2023 20:28:15 -0800 Subject: [PATCH] Restore name checking to compare against full listed names --- anyio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/anyio.c b/anyio.c index 77cc853..e3f8881 100644 --- a/anyio.c +++ b/anyio.c @@ -119,8 +119,7 @@ int anyio_find_dev(board_access_t *access) { } for (i = 0; supported_boards[i].name != NULL; i++) { -// if (strncmp(supported_boards[i].name, access->device_name, strlen(supported_boards[i].name)) == 0) { // fails to reject bogus names - if (strncmp(supported_boards[i].name, access->device_name, strlen(access->device_name)) == 0) { + if (strncmp(supported_boards[i].name, access->device_name, strlen(supported_boards[i].name)) == 0) { supported_board = &supported_boards[i]; break; }