Skip to content

Commit

Permalink
fixup check case sensitively
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Sep 13, 2024
1 parent dd805b3 commit be82c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ static int getarg(struct option *o,
*usedarg = gap;
}
else if(checkoptarg(o, "--trim", flag, arg)) {
if(casecompare(arg, "query=", 6))
if(strncmp(arg, "query=", 6))
errorf(o, ERROR_TRIM, "Unsupported trim component: %s", arg);

trimadd(o, &arg[6]);
Expand Down

0 comments on commit be82c13

Please sign in to comment.