mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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:
@@ -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]);
|
||||
|
||||
|
||||
@@ -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]);*/
|
||||
|
||||
Reference in New Issue
Block a user