Skip to content

Commit

Permalink
thdat: allow using string versions starting with d
Browse files Browse the repository at this point in the history
like ds, ddc and daybreak
  • Loading branch information
DankRank committed Sep 27, 2023
1 parent 5dad5fa commit 45e5b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thdat/thdat.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ main(
exit(1);
}
mode = opt;
if((opt == 'x' || mode == 'l') && *util_optarg == 'd') {
if((opt == 'x' || mode == 'l') && !strcmp(util_optarg, "d")) {
version = ~0;
}
else if(opt != 'd') version = parse_version(util_optarg);
Expand Down

0 comments on commit 45e5b25

Please sign in to comment.