Fix potential buffer overflow with FileListEntryPreview::filepath

This commit is contained in:
Campbell Barton 2023-04-30 13:37:05 +10:00
parent 635cccc54e
commit 91325378cb
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,8 @@ enum {
};
struct FileListEntryPreview {
char filepath[FILE_MAX];
/** Use #FILE_MAX_LIBEXTRA as this is the size written into by #filelist_file_get_full_path. */
char filepath[FILE_MAX_LIBEXTRA];
uint flags;
int index;
int attributes; /* from FileDirEntry. */