common/cmd_nvedit.c: Fix size calculation in do_env_import()
authorHorst Kronstorfer <hkronsto@frequentis.com>
Fri, 16 Dec 2011 23:33:10 +0000 (23:33 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 19 Dec 2011 09:19:34 +0000 (10:19 +0100)
commitd3f80c77ca92eaf1e7166f0c4fdcaafefc563277
tree60eafe94864819dc8848c94074ce00b2c4942d37
parenta7b39185338c333a052728a7952b5f1cba4fc22a
common/cmd_nvedit.c: Fix size calculation in do_env_import()

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@frequentis.com>
common/cmd_nvedit.c