Skip to content

Commit

Permalink
Fix logic error in minizip argument processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Jul 30, 2023
1 parent 379bbda commit 3061e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/minizip/minizip.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ int main(int argc, char *argv[]) {
((argv[i][1]=='o') || (argv[i][1]=='O') ||
(argv[i][1]=='a') || (argv[i][1]=='A') ||
(argv[i][1]=='p') || (argv[i][1]=='P') ||
((argv[i][1]>='0') || (argv[i][1]<='9'))) &&
((argv[i][1]>='0') && (argv[i][1]<='9'))) &&
(strlen(argv[i]) == 2)))
{
FILE * fin;
Expand Down

0 comments on commit 3061e50

Please sign in to comment.