From 50f84f26326a81b266efd0e10deddb9a983083fa Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 5 Mar 2022 15:49:25 +0800 Subject: [PATCH] Fix error: 'snprintf' output may be truncated before the last format character Signed-off-by: Xiang Xiao --- drivers/usbhost/usbhost_hidmouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usbhost/usbhost_hidmouse.c b/drivers/usbhost/usbhost_hidmouse.c index f4957f04a67..da4f3c33b64 100644 --- a/drivers/usbhost/usbhost_hidmouse.c +++ b/drivers/usbhost/usbhost_hidmouse.c @@ -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() */