[U-Boot] [PATCH] common/cmd_nvedit.c: Fix size calculation in do_env_import()

Wolfgang Denk wd at denx.de
Mon Dec 19 10:19:52 CET 2011


Dear Horst Kronstorfer,

In message <1324114390-27290-1-git-send-email-hkronsto at frequentis.com> you wrote:
> do_env_import() missed the final '\0' terminator when calculating the
> size of an environment data block.  This led to an erroneous 'bad CRC,
> import failed' message for a checksum protected environment (-c.)
> 
> Signed-off-by: Horst Kronstorfer <hkronsto at frequentis.com>
> ---
>  common/cmd_nvedit.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You don't have to stay up nights to succeed; you have to  stay  awake
days.


More information about the U-Boot mailing list