From edaaf90cbc6d44baa8a8d5bb704f55460212b629 Mon Sep 17 00:00:00 2001 From: jarjar Date: Mon, 7 Apr 2025 12:07:38 +0000 Subject: [PATCH] Update src/mfoc.c --- src/mfoc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mfoc.c b/src/mfoc.c index e2545be..37052a8 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -285,6 +285,7 @@ int main(int argc, char *const argv[]) case 0x01: case 0x08: case 0x88: + case 0x19: if (get_rats_is_2k(t, r)) { printf("Found Mifare Plus 2k tag\n"); t.num_sectors = NR_TRAILERS_2k; @@ -753,7 +754,7 @@ error: exit(EXIT_FAILURE); } -void usage(FILE *stream, int errno) +void usage(FILE *stream, int code) { fprintf(stream, "Usage: mfoc [-h] [-k key] [-f file] ... [-P probnum] [-T tolerance] [-O output]\n"); fprintf(stream, "\n"); @@ -776,7 +777,7 @@ void usage(FILE *stream, int errno) fprintf(stream, "\n"); fprintf(stream, "This is mfoc version %s.\n", PACKAGE_VERSION); fprintf(stream, "For more information, run: 'man mfoc'.\n"); - exit(errno); + exit(code); } void mf_init(mfreader *r)