platform: generic: Terminate platform.name with null
authorBin Meng <bmeng.cn@gmail.com>
Sun, 4 Jul 2021 15:01:13 +0000 (23:01 +0800)
committerAnup Patel <anup@brainfault.org>
Tue, 6 Jul 2021 08:51:53 +0000 (14:21 +0530)
commit17e23b678dac2e4579e714705cec137b351f7e9b
treebb8c9a38cdab616127201eca429af82f697788a5
parent197e08941bd394b6b88ad07c5a3adfe67f5b3b10
platform: generic: Terminate platform.name with null

fw_platform_init() fills platform.name without considering the
ending null character. Fix it.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
platform/generic/platform.c