Skip to content

Commit a106b6a

Browse files
andy-shevdtor
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 63f4970 commit a106b6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/input/mouse/alps.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3103,8 +3103,8 @@ int alps_init(struct psmouse *psmouse)
31033103
goto init_fail;
31043104
}
31053105

3106-
snprintf(priv->phys2, sizeof(priv->phys2), "%s/input1",
3107-
psmouse->ps2dev.serio->phys);
3106+
scnprintf(priv->phys2, sizeof(priv->phys2), "%s/input1",
3107+
psmouse->ps2dev.serio->phys);
31083108
dev2->phys = priv->phys2;
31093109

31103110
/*

0 commit comments

Comments
 (0)