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
+2 -2
View File
@@ -157,10 +157,10 @@
#ifdef CONFIG_HIDMOUSE_TSCIF #ifdef CONFIG_HIDMOUSE_TSCIF
# define DEV_FORMAT "/dev/input%d" # define DEV_FORMAT "/dev/input%d"
# define DEV_NAMELEN 13 # define DEV_NAMELEN 14
#else #else
# define DEV_FORMAT "/dev/mouse%d" # define DEV_FORMAT "/dev/mouse%d"
# define DEV_NAMELEN 13 # define DEV_NAMELEN 14
#endif #endif
/* Used in usbhost_cfgdesc() */ /* Used in usbhost_cfgdesc() */