summaryrefslogtreecommitdiffstats
path: root/commands/nandtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/nandtest.c')
-rw-r--r--commands/nandtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/nandtest.c b/commands/nandtest.c
index ba15ecfb33..f6e8f99892 100644
--- a/commands/nandtest.c
+++ b/commands/nandtest.c
@@ -181,7 +181,7 @@ static int do_nandtest(int argc, char *argv[])
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) {