input: touchscreen: hxchipset: move from strlcpy with unused retval to strscpy

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8bc3d6cca2af6c17a1fbda2c1cb05cdc4d8003c6
This commit is contained in:
Tao Huang
2025-02-17 19:20:07 +08:00
parent d426c0ba92
commit a6c1197400
2 changed files with 2 additions and 2 deletions

View File

@@ -554,7 +554,7 @@ bool hx83192_chip_detect(struct himax_ts_data *ts)
tmp_data[1]);
if ((tmp_data[3] == 0x83) && (tmp_data[2] == 0x19) && (tmp_data[1] == 0x2a)) {
strlcpy(ts->chip_name, HX_83192A_SERIES_PWON, 30);
strscpy(ts->chip_name, HX_83192A_SERIES_PWON, 30);
I("%s:IC name = %s\n", __func__, ts->chip_name);
I("Himax IC package %x%x%x in\n", tmp_data[3], tmp_data[2], tmp_data[1]);

View File

@@ -1614,7 +1614,7 @@ static int himax_parse_test_dri_file(struct himax_ts_data *ts, const struct firm
while (g_hx_head_str[i]) {
/*compose header string of .dri file*/
for (j = 0; j < 2; j++) {
strlcpy(str[j], "[", sizeof(str[j]));
strscpy(str[j], "[", sizeof(str[j]));
strlcat(str[j], g_hx_head_str[i], sizeof(str[j]));
strlcat(str[j], str_tail[j], sizeof(str[j]));
/*I("%s string[%d] : %s\n", __func__, j, str[j]);*/