From d9e95a8f9bde32bd0f2fb44b53537047b47caec6 Mon Sep 17 00:00:00 2001 From: klmchp Date: Thu, 26 May 2022 19:09:07 +0800 Subject: [PATCH] fix devname array size Fix drivers/mtd/smart.c devname overflow issue. --- drivers/mtd/smart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/smart.c b/drivers/mtd/smart.c index d8054ad5a1..7fced45542 100644 --- a/drivers/mtd/smart.c +++ b/drivers/mtd/smart.c @@ -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] =