Skip to content

Commit

Permalink
Restore name checking to compare against full listed names
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw-mesa committed Nov 16, 2023
1 parent e3e7688 commit aef5246
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions anyio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aef5246

Please sign in to comment.