Input: dynapro - switch to use scnprintf() to suppress truncation warning
Subsystems (2)
PATCH 1/1 Input: dynapro - 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 <[email protected]>
--- drivers/input/touchscreen/dynapro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/dynapro.c +1 -1
@@ -119,7 +119,7 @@ static int dynapro_connect(struct serio *serio, struct serio_driver *drv) pdynapro->serio = serio; pdynapro->dev = input_dev; -snprintf (pdynapro->phys,sizeof (pdynapro->phys), +scnprintf (pdynapro->phys,sizeof (pdynapro->phys),"%s/input0" , serio->phys); input_dev->name ="Dynapro Serial TouchScreen" ;
Signature · 1 line
2.50.1
Quoted 4 lines · Andy Shevchenko
Switch the driver to use
scnprintf()to avoid warnings about potential truncation of "phys" field which we can tolerate.Signed-off-by Andy Shevchenko <[email protected]>
Applied this and the rest of your similar patches, thanks!
Signature · 1 line
Dmitry