diff --git a/commands/nandtest.c b/commands/nandtest.c index ba15ecf..f6e8f99 100644 --- a/commands/nandtest.c +++ b/commands/nandtest.c @@ -181,7 +181,7 @@ markbad = 0; fd = -1; - memset(ecc_stats, 0, MAX_ECC_BITS); + memset(ecc_stats, 0, sizeof(*ecc_stats)); while ((opt = getopt(argc, argv, "ms:i:o:l:t")) > 0) { switch (opt) {