From: Wolfgang Denk Date: Mon, 19 Dec 2011 10:19:52 +0100 Subject: [U-Boot] [PATCH] common/cmd_nvedit.c: Fix size calculation in do_env_import() In-Reply-To: <1324114390-27290-1-git-send-email-hkronsto@frequentis.com> References: <1324114390-27290-1-git-send-email-hkronsto@frequentis.com> Message-ID: <20111219091952.7B56511CDEA7@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Horst Kronstorfer, In message <1324114390-27290-1-git-send-email-hkronsto@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 > --- > 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.