fix devname array size

Fix drivers/mtd/smart.c devname overflow issue.
This commit is contained in:
klmchp 2022-05-26 19:09:07 +08:00 committed by Alan Carvalho de Assis
parent feb54fc272
commit d9e95a8f9b

View File

@ -1938,7 +1938,7 @@ static int smart_scan(FAR struct smart_struct_s *dev)
#endif
#ifdef CONFIG_SMARTFS_MULTI_ROOT_DIRS
int x;
char devname[22];
char devname[32];
FAR struct smart_multiroot_device_s *rootdirdev;
#endif
static const uint16_t sizetbl[8] =