Skip to content

Commit

Permalink
Fix endless loop on linux aarch64 (#21)
Browse files Browse the repository at this point in the history
- the truncated return value of getopt_long did never match -1
  • Loading branch information
andban authored Oct 6, 2024
1 parent d3a0e31 commit 3dad7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyfinder_cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ int main(int argc, char** argv)

opterr = 0;

char c;
int c;
while ((c = getopt_long(argc, argv, "n:h", options, nullptr)) != -1)
{
switch (c)
Expand Down

0 comments on commit 3dad7a4

Please sign in to comment.