Skip to content

Commit

Permalink
Improve rejection of unknown card names
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw-mesa committed Nov 2, 2023
1 parent 1aa3349 commit 3217b03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anyio.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,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) {
// 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) {
supported_board = &supported_boards[i];
break;
Expand Down
2 changes: 1 addition & 1 deletion mesaflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#endif

#ifndef VERSION
#define VERSION "3.5.1"
#define VERSION "3.5.2"
#endif

static int device_flag;
Expand Down

0 comments on commit 3217b03

Please sign in to comment.