Cleanup: use FILE_MAX instead of PATH_MAX for sequencer add code

This is clamped by StripElem::name which is a filename component,
so no need to use PATH_MAX which is much larger.
This commit is contained in:
Campbell Barton
2023-05-02 17:14:33 +10:00
parent b315a17902
commit 015343033c

View File

@@ -1246,8 +1246,8 @@ void sequencer_image_seq_reserve_frames(
RNA_END;
if (filename) {
char ext[PATH_MAX];
char filename_stripped[PATH_MAX];
char ext[FILE_MAX];
char filename_stripped[FILE_MAX];
/* Strip the frame from filename and substitute with `#`. */
BLI_path_frame_strip(filename, ext, sizeof(ext));