Browse Source

nand_fileio_parse_args parses wrong param for size

This changes the size parameter from argv[2] to argv[3], which is what it's
supposed to be.

Signed-off-by: Zachary T Welch <zw@superlucidity.net>
tags/v0.4.0-rc1
Dean Glazeski 14 years ago
committed by Zachary T Welch
parent
commit
c049033fde
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/flash/nand.c

+ 1
- 1
src/flash/nand.c View File

@@ -1406,7 +1406,7 @@ static COMMAND_HELPER(nand_fileio_parse_args, struct nand_fileio_state *state,
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], state->address);
if (need_size)
{
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], state->size);
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[3], state->size);
if (state->size % nand->page_size)
{
command_print(CMD_CTX, "only page-aligned sizes are supported");


Loading…
Cancel
Save