Input: ims-pcu - fix printf string overflow
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Mar 2024 20:28:56 +0000 (13:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 Mar 2024 20:29:44 +0000 (13:29 -0700)
commitbf32bceedd0453c70d9d022e2e29f98e446d7161
tree218a11c9e2ad58b4befd85c9bf34d6ca6bd0d42a
parentc7df39b2a5643c4df566fb23951f619f8c639042
Input: ims-pcu - fix printf string overflow

clang warns about a string overflow in this driver

drivers/input/misc/ims-pcu.c:1802:2: error: 'snprintf' will always be truncated; specified size is 10, but format string expands to at least 12 [-Werror,-Wformat-truncation]
drivers/input/misc/ims-pcu.c:1814:2: error: 'snprintf' will always be truncated; specified size is 10, but format string expands to at least 12 [-Werror,-Wformat-truncation]

Make the buffer a little longer to ensure it always fits.

Fixes: 628329d52474 ("Input: add IMS Passenger Control Unit driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240326223825.4084412-7-arnd@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/ims-pcu.c