Skip to content

Commit

Permalink
Fix card name checking so bogus names are rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw-mesa committed Nov 2, 2023
1 parent 94a662e commit 1aa3349
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anyio.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ 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) {
// if (strncmp(supported_boards[i].name, access->device_name, strlen(supported_boards[i].name)) == 0) {
if (strncmp(supported_boards[i].name, access->device_name, strlen(access->device_name)) == 0) {
supported_board = &supported_boards[i];
break;
}
Expand Down

0 comments on commit 1aa3349

Please sign in to comment.