halapi: Fix strncpy() warnings 49/302749/3
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 13 Dec 2023 04:55:41 +0000 (13:55 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 22 Dec 2023 01:27:08 +0000 (10:27 +0900)
commit04463c058f1f2c1169bb25c9e455d1b680f3bb6d
tree499ebe3c5c22ab1699ca3ca1970b625986dff7e3
parent337aeedddc2e9bad6b2490030caffafd9834024f
halapi: Fix strncpy() warnings

Those strncpy() cause warnings, -Wstringop-truncate, -Wstringop-overflow
due to the length calculated by strlen(). Replace the length with the
explicit size specified by the parameter. It is logically the same as
before.

Change-Id: I5b06f8595aa89f32fc7a6becab31130eb1178116
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/hal-api-common.c