Skip to content
Commit 6324c93d authored by Dave Stevenson's avatar Dave Stevenson Committed by Dom Cobley
Browse files

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: default avatarDave Stevenson <dave.stevenson@raspberrypi.com>
parent 704cc7d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment