mirror of
https://github.com/apache/nuttx.git
synced 2026-09-08 01:46:35 +00:00
fix devname array size
Fix drivers/mtd/smart.c devname overflow issue.
This commit is contained in:
parent
feb54fc272
commit
d9e95a8f9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue