From 3dad7a4ac46284bbdd3f866ac2011c2b254cec37 Mon Sep 17 00:00:00 2001 From: andban Date: Sun, 6 Oct 2024 20:29:46 +0200 Subject: [PATCH] Fix endless loop on linux aarch64 (#21) - the truncated return value of getopt_long did never match -1 --- keyfinder_cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyfinder_cli.cpp b/keyfinder_cli.cpp index 5994d6c..968092b 100644 --- a/keyfinder_cli.cpp +++ b/keyfinder_cli.cpp @@ -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)