summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Smith <alex.smith@imgtec.com>2015-06-29 12:13:07 +0300
committerAlex Smith <alex.smith@imgtec.com>2015-06-29 12:13:07 +0300
commitddec3b7873e82e9dcad1573aa2fce751cc1ce67a (patch)
treef9d4128878da44ce24222993dfc1432e67d4af01
parentb253ee9554899f0cc8d0c0147e6d110693a140aa (diff)
downloadCI20_u-boot-ddec3b7873e82e9dcad1573aa2fce751cc1ce67a.tar.xz
ci20: Fix garbage in board_mfr environment string
The manufacturer string was copied out of the OTP into a temporary buffer and null-terminated, but then the board_mfr variable was set from the original, non-terminated string, resulting in garbage data in the variable. Fix this. Signed-off-by: Alex Smith <alex.smith@imgtec.com>
-rw-r--r--board/imgtec/ci20/ci20.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/imgtec/ci20/ci20.c b/board/imgtec/ci20/ci20.c
index 6ca384801..767efb189 100644
--- a/board/imgtec/ci20/ci20.c
+++ b/board/imgtec/ci20/ci20.c
@@ -70,7 +70,7 @@ int misc_init_r(void)
setenv_ulong("board_date", otp.date);
memcpy(manufacturer, otp.manufacturer, 2);
manufacturer[2] = 0;
- setenv("board_mfr", otp.manufacturer);
+ setenv("board_mfr", manufacturer);
return 0;
}