Fix error: 'snprintf' output may be truncated before the last format character

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-05 15:49:25 +08:00 committed by Petro Karashchenko
parent be2f688cd9
commit 50f84f2632

View File

@ -157,10 +157,10 @@
#ifdef CONFIG_HIDMOUSE_TSCIF
# define DEV_FORMAT "/dev/input%d"
# define DEV_NAMELEN 13
# define DEV_NAMELEN 14
#else
# define DEV_FORMAT "/dev/mouse%d"
# define DEV_NAMELEN 13
# define DEV_NAMELEN 14
#endif
/* Used in usbhost_cfgdesc() */