From: Andy Shevchenko Date: Mon, 30 Jun 2025 08:21:52 +0000 (+0300) Subject: Input: alps - use scnprintf() to suppress truncation warning X-Git-Tag: v6.16-rc5~21^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a106b6a888caf478d5fd31d123ffa09558500772;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20250630082245.1416796-1-andriy.shevchenko@linux.intel.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index 01f270509f03c..51056f77a8c9b 100644 --- a/drivers/input/mouse/alps.c +++ b/drivers/input/mouse/alps.c @@ -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; /*