From d4124e62513cce8abf13db45871f3fff5048f3d1 Mon Sep 17 00:00:00 2001 From: Michael Benedict Date: Thu, 12 Sep 2019 00:19:56 +1000 Subject: [PATCH] input: silence strlcpy-strlcat-size warning Signed-off-by: Michael Benedict --- drivers/input/touchscreen/sec_ts/sec_ts_fn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/sec_ts/sec_ts_fn.c b/drivers/input/touchscreen/sec_ts/sec_ts_fn.c index c8bc4fbb47d9..c2ec700d1cb4 100644 --- a/drivers/input/touchscreen/sec_ts/sec_ts_fn.c +++ b/drivers/input/touchscreen/sec_ts/sec_ts_fn.c @@ -909,7 +909,7 @@ static ssize_t ic_status_show(struct device *dev, strlcat(buff, temp, sizeof(buff)); snprintf(temp, sizeof(temp), "singletap,%d,", data[0] & 0x08 ? 1 : 0); - strncat(buff, temp, sizeof(temp)); + strlcat(buff, temp, sizeof(buff)); data[0] = 0; -- 2.20.1