Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: psmouse - 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>

+1 -1
+1 -1
drivers/input/mouse/psmouse-base.c
··· 1600 1600 psmouse_pre_receive_byte, psmouse_receive_byte); 1601 1601 INIT_DELAYED_WORK(&psmouse->resync_work, psmouse_resync); 1602 1602 psmouse->dev = input_dev; 1603 - snprintf(psmouse->phys, sizeof(psmouse->phys), "%s/input0", serio->phys); 1603 + scnprintf(psmouse->phys, sizeof(psmouse->phys), "%s/input0", serio->phys); 1604 1604 1605 1605 psmouse_set_state(psmouse, PSMOUSE_INITIALIZING); 1606 1606