summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2007-10-05 09:46:06 +0200
committerBartlomiej Sieka <tur@semihalf.com>2007-10-05 09:46:06 +0200
commit92869195ef8210758d2176230c0a36897afd50ed (patch)
tree5f1684b39595237e137e5453223d5b7bb057f3e1 /board
parent527c80f012030fa0b51f8594847ec56c9317e9b1 (diff)
downloadu-boot-imx-92869195ef8210758d2176230c0a36897afd50ed.zip
u-boot-imx-92869195ef8210758d2176230c0a36897afd50ed.tar.gz
u-boot-imx-92869195ef8210758d2176230c0a36897afd50ed.tar.bz2
CM5200: Fix missing null-termination in hostname manipulation code
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Diffstat (limited to 'board')
-rw-r--r--board/cm5200/cm5200.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/cm5200/cm5200.c b/board/cm5200/cm5200.c
index b74ac08..e2ab5b8 100644
--- a/board/cm5200/cm5200.c
+++ b/board/cm5200/cm5200.c
@@ -397,6 +397,7 @@ int misc_init_r(void)
"operational\n");
/* set the hostname appropriate to the module we're running on */
+ hostname[0] = 0x00;
compose_hostname(hw_id, hostname);
setenv("hostname", hostname);