mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
Input: lifebook - 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. Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
1babc858cc
commit
ce098f2ade
|
|
@ -279,8 +279,8 @@ static int lifebook_create_relative_device(struct psmouse *psmouse)
|
|||
goto err_out;
|
||||
|
||||
priv->dev2 = dev2;
|
||||
snprintf(priv->phys, sizeof(priv->phys),
|
||||
"%s/input1", psmouse->ps2dev.serio->phys);
|
||||
scnprintf(priv->phys, sizeof(priv->phys),
|
||||
"%s/input1", psmouse->ps2dev.serio->phys);
|
||||
|
||||
dev2->phys = priv->phys;
|
||||
dev2->name = "LBPS/2 Fujitsu Lifebook Touchpad";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user