Browse Source

CM5200: Fix missing null-termination in hostname manipulation code

Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Bartlomiej Sieka 17 years ago
parent
commit
92869195ef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      board/cm5200/cm5200.c

+ 1 - 0
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);