summaryrefslogtreecommitdiffstats
path: root/commands/nandtest.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-07-07 16:27:16 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-09 08:41:31 +0200
commitb90bceb6a90a1f95162527e239b332ee596bd057 (patch)
tree6b82946eb8a6b79d72fb97c51b16aa5ee8e18bb8 /commands/nandtest.c
parent0a9ec168725bde1bf1e6e3fe980ab85989978646 (diff)
downloadbarebox-b90bceb6a90a1f95162527e239b332ee596bd057.tar.gz
commands: nandtest: Fix incorrect size for memset in do_nandtest
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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 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) {