diff --git a/drivers/input/touchscreen/hxchipset/himax_ic_HX83192.c b/drivers/input/touchscreen/hxchipset/himax_ic_HX83192.c index 35ae23c28a12..3547392a53c5 100644 --- a/drivers/input/touchscreen/hxchipset/himax_ic_HX83192.c +++ b/drivers/input/touchscreen/hxchipset/himax_ic_HX83192.c @@ -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]); diff --git a/drivers/input/touchscreen/hxchipset/himax_inspection.c b/drivers/input/touchscreen/hxchipset/himax_inspection.c index 8f54a403e347..1c92da4654ac 100644 --- a/drivers/input/touchscreen/hxchipset/himax_inspection.c +++ b/drivers/input/touchscreen/hxchipset/himax_inspection.c @@ -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]);*/