From ca3efe2517ac5ebaf825bfd00c90b4ce976fca48 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Sun, 6 Feb 2011 19:46:16 +0000 Subject: [PATCH] nfc-mfclassic: fixes a segfault when using only 1 argument (Fixes Issue 142) --- examples/nfc-mfclassic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nfc-mfclassic.c b/examples/nfc-mfclassic.c index 6462d40..e3b4d0c 100644 --- a/examples/nfc-mfclassic.c +++ b/examples/nfc-mfclassic.c @@ -358,7 +358,7 @@ main (int argc, const char *argv[]) FILE *pfDump = NULL; const char *command = argv[1]; - if (argc < 2) { + if (argc < 3) { print_usage (argv[0]); exit (EXIT_FAILURE); }