Skip to content

Commit b2c767e

Browse files
andy-shevdtor
authored andcommitted
Input: touchit213 - switch to use scnprintf() to suppress truncation warning
Switch the driver to use scnprintf() to avoid warnings about potential truncation of "phys" field which we can tolerate. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260113082931.88083-1-andriy.shevchenko@linux.intel.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 1828b52 commit b2c767e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/input/touchscreen/touchit213.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ static int touchit213_connect(struct serio *serio, struct serio_driver *drv)
148148

149149
touchit213->serio = serio;
150150
touchit213->dev = input_dev;
151-
snprintf(touchit213->phys, sizeof(touchit213->phys),
152-
"%s/input0", serio->phys);
151+
scnprintf(touchit213->phys, sizeof(touchit213->phys),
152+
"%s/input0", serio->phys);
153153

154154
input_dev->name = "Sahara Touch-iT213 Serial TouchScreen";
155155
input_dev->phys = touchit213->phys;

0 commit comments

Comments
 (0)