Fix potential buffer overflow with FileListEntryPreview::filepath
This commit is contained in:
parent
635cccc54e
commit
91325378cb
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue