Skip to content

Commit

Permalink
change how we determine the extensions; to deal with things like foo.…
Browse files Browse the repository at this point in the history
…ino.hex; or foo.sig.hex which are increasingly common. (Fixes vdudouyt#150)
  • Loading branch information
dirkx committed Jan 17, 2022
1 parent 6d91dbd commit b569c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void dump_pgms(programmer_t *pgms) {
}

bool is_ext(const char *filename, const char *ext) {
char *ext_begin = strrchr(filename, '.');
char *ext_begin = rindex(filename, '.');
return(ext_begin && strcmp(ext_begin, ext) == 0);
}

Expand Down

0 comments on commit b569c3a

Please sign in to comment.