input: edt-ft5x06: Correct prefix length in snprintf
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 18 Dec 2023 11:49:36 +0000 (11:49 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:24 +0000 (11:35 +0000)
commit6324c93d1f2734625711049ef6e975d3edf4d37b
treeeb39f8ff8eaf1cfaac45b30ed1553eb0a842c603
parent704cc7d5d095bd8cfe20d8496229464d63df50bb
input: edt-ft5x06: Correct prefix length in snprintf

snprintf takes the length of the array that we can print into,
and has to fit the NULL terminator in there too.
Printing the prefix is generally "12-3456 " which is 8 desired
characters (the length of EDT_NAME_PREFIX_LEN) and the NULL.
The space is therefore being truncated to fit the NULL in.

Increase the length snprintf is allowed to use.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/input/touchscreen/edt-ft5x06.c