From fc54e61890d304086ce134e681a33cf6a892b220 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 2 Jan 2024 23:23:40 +0100 Subject: [PATCH] fix optarg error --- tools/hitag2crack/crack4/ht2crack4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hitag2crack/crack4/ht2crack4.c b/tools/hitag2crack/crack4/ht2crack4.c index 3c2680692..70585ed58 100644 --- a/tools/hitag2crack/crack4/ht2crack4.c +++ b/tools/hitag2crack/crack4/ht2crack4.c @@ -49,6 +49,7 @@ #include #include #include +#include #include "ht2crackutils.h" /* you could have more than 32 traces, but you shouldn't really need @@ -774,7 +775,7 @@ int main(int argc, char *argv[]) { uint64_t revkey; uint64_t foundkey; int tot_nRaR = 0; - char c; + int c; char *uidstr = NULL; char *noncefilestr = NULL;