input: silence strlcpy-strlcat-size warning
authorMichael Benedict <michaelbt@live.com>
Wed, 11 Sep 2019 14:19:56 +0000 (00:19 +1000)
committerMichael Benedict <michaelbt@live.com>
Wed, 11 Sep 2019 14:35:45 +0000 (00:35 +1000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
drivers/input/touchscreen/sec_ts/sec_ts_fn.c

index c8bc4fbb47d9b88b5b74091573137d3846c40e2b..c2ec700d1cb4b28d396d32f91f2563b1adab8341 100644 (file)
@@ -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;