diff options
Diffstat (limited to 'nuttx/fs/fat/fs_fat32.h')
-rw-r--r-- | nuttx/fs/fat/fs_fat32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/fat/fs_fat32.h b/nuttx/fs/fat/fs_fat32.h index 3d3db644c..5c10de000 100644 --- a/nuttx/fs/fat/fs_fat32.h +++ b/nuttx/fs/fat/fs_fat32.h @@ -732,9 +732,9 @@ struct fat_dirinfo_s /* The file/directory name */ #ifdef CONFIG_FAT_LFN - uint8_t fd_lfname[LDIR_MAXFNAME]; /* Long filename */ + uint8_t fd_lfname[LDIR_MAXFNAME+1]; /* Long filename with terminator */ #endif - uint8_t fd_name[DIR_MAXFNAME]; /* Short 8.3 alias filename */ + uint8_t fd_name[DIR_MAXFNAME]; /* Short 8.3 alias filename (no terminator) */ /* NT flags are not used */ |