mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
CM5200: Fix missing null-termination in hostname manipulation code
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
This commit is contained in:
parent
527c80f012
commit
92869195ef
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue