core: fix chip-info strings termination
authorIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 29 Jul 2024 10:57:18 +0000 (12:57 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 31 Jul 2024 08:57:59 +0000 (10:57 +0200)
commitd71f5ad24663624a17d335462908ae5a8f69bcf7
treeeb5f5a9610c4eb4fac5b4ef7080bb9a2e2f1236d
parent5533f277aa28b36f8ed4bbfac8e22e011ed68858
core: fix chip-info strings termination

strncpy() truncates the destination buffer if it isn't large enough to
hold the copy. Thus, let's increase the size of the destination strings
to add the NULL character at the end.

Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
Link: https://lore.kernel.org/r/1d7cf79edf75ef77baa56091852be90e2359e572.1722250385.git.ikerpedrosam@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
lib/chip-info.c