mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
Input: alps - use scnprintf() to suppress truncation warning
The commit 76c968e75715 ("Input: alps - switch to use scnprintf() to suppress
truncation warning") converted one place in the driver while the other left
untouched. Convert the other place as well.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250630082245.1416796-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
committed by
Dmitry Torokhov
parent
63f4970a12
commit
a106b6a888
@@ -3103,8 +3103,8 @@ int alps_init(struct psmouse *psmouse)
|
||||
goto init_fail;
|
||||
}
|
||||
|
||||
snprintf(priv->phys2, sizeof(priv->phys2), "%s/input1",
|
||||
psmouse->ps2dev.serio->phys);
|
||||
scnprintf(priv->phys2, sizeof(priv->phys2), "%s/input1",
|
||||
psmouse->ps2dev.serio->phys);
|
||||
dev2->phys = priv->phys2;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user