From 92869195ef8210758d2176230c0a36897afd50ed Mon Sep 17 00:00:00 2001 From: Bartlomiej Sieka Date: Fri, 5 Oct 2007 09:46:06 +0200 Subject: [PATCH] CM5200: Fix missing null-termination in hostname manipulation code Signed-off-by: Bartlomiej Sieka --- board/cm5200/cm5200.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/cm5200/cm5200.c b/board/cm5200/cm5200.c index b74ac08bce..e2ab5b8e26 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);