提交 92869195 编写于 作者: B Bartlomiej Sieka

CM5200: Fix missing null-termination in hostname manipulation code

Signed-off-by: NBartlomiej Sieka <tur@semihalf.com>
上级 527c80f0
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册