Commit ce098f2a authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 1babc858
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ static int lifebook_create_relative_device(struct psmouse *psmouse)
		goto err_out;

	priv->dev2 = dev2;
	snprintf(priv->phys, sizeof(priv->phys),
	scnprintf(priv->phys, sizeof(priv->phys),
		  "%s/input1", psmouse->ps2dev.serio->phys);

	dev2->phys = priv->phys;