From 92869195ef8210758d2176230c0a36897afd50ed Mon Sep 17 00:00:00 2001 From: Bartlomiej Sieka Date: Fri, 5 Oct 2007 09:46:06 +0200 Subject: CM5200: Fix missing null-termination in hostname manipulation code Signed-off-by: Bartlomiej Sieka --- board/cm5200/cm5200.c | 1 + 1 file changed, 1 insertion(+) (limited to 'board/cm5200') 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); -- cgit v1.1