You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2022/05/26 13:00:19 UTC

[incubator-nuttx] branch master updated: fix devname array size

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new d9e95a8f9b fix devname array size
d9e95a8f9b is described below

commit d9e95a8f9bde32bd0f2fb44b53537047b47caec6
Author: klmchp <ke...@gmail.com>
AuthorDate: Thu May 26 19:09:07 2022 +0800

    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] =