From: Michael Benedict Date: Wed, 11 Sep 2019 14:19:56 +0000 (+1000) Subject: input: silence strlcpy-strlcat-size warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d4124e62513cce8abf13db45871f3fff5048f3d1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git input: silence strlcpy-strlcat-size warning Signed-off-by: Michael Benedict --- 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;