From: Bartlomiej Sieka Date: Wed, 8 Mar 2006 07:32:43 +0000 (+0100) Subject: Fixed a bug in saveenv(). Credit: Markus Klotzbuecher. X-Git-Tag: LABEL_2006_03_12_0025~6^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3d65390e2116f53f5ee6615ad92262613198b66c;p=oweals%2Fu-boot.git Fixed a bug in saveenv(). Credit: Markus Klotzbuecher. > @@ -115,7 +115,7 @@ int saveenv(void) --- diff --git a/common/env_nand.c b/common/env_nand.c index 4896853530..4ae68c5a23 100644 --- a/common/env_nand.c +++ b/common/env_nand.c @@ -115,7 +115,7 @@ int saveenv(void) int total, ret = 0; puts ("Erasing Nand..."); - if (nand_erase(&nand_info[0], CFG_NEW_OFFSET, CFG_ENV_SIZE)) + if (nand_erase(&nand_info[0], CFG_ENV_OFFSET, CFG_ENV_SIZE)) return 1; puts ("Writing to Nand... ");