Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx> --- commands/nandtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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) { -- 1.8.1.5 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox