Skip to content

Commit ed9b2fc

Browse files
andy-shevdtor
authored andcommitted
Input: gunze - 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/20260113082901.83668-1-andriy.shevchenko@linux.intel.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent be1735d commit ed9b2fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/touchscreen/gunze.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static int gunze_connect(struct serio *serio, struct serio_driver *drv)
106106

107107
gunze->serio = serio;
108108
gunze->dev = input_dev;
109-
snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys);
109+
scnprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys);
110110

111111
input_dev->name = "Gunze AHL-51S TouchScreen";
112112
input_dev->phys = gunze->phys;

0 commit comments

Comments
 (0)