From: Bartlomiej Sieka Date: Fri, 5 Oct 2007 07:46:06 +0000 (+0200) Subject: CM5200: Fix missing null-termination in hostname manipulation code X-Git-Tag: v1.3.0-rc3~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=92869195ef8210758d2176230c0a36897afd50ed;p=oweals%2Fu-boot.git CM5200: Fix missing null-termination in hostname manipulation code Signed-off-by: Bartlomiej Sieka --- 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);