From 9ea2a7c02ddd8fc949b5917e53ee75af11012b6a Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 8 Oct 2017 16:08:00 +0200 Subject: Fix potential string buffer overruns. Note that our library path handling is still rather dodgy on this regards, shall take some time at some point to seriously sanitize it... --- source/blender/editors/space_file/file_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_file') diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index ab1bcbaa8b5..22c1214d928 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -2203,7 +2203,7 @@ static int file_rename_poll(bContext *C) poll = false; } else { - char dir[FILE_MAX]; + char dir[FILE_MAX_LIBEXTRA]; if (filelist_islibrary(sfile->files, dir, NULL)) { poll = false; } @@ -2235,7 +2235,7 @@ static int file_delete_poll(bContext *C) SpaceFile *sfile = CTX_wm_space_file(C); if (sfile && sfile->params) { - char dir[FILE_MAX]; + char dir[FILE_MAX_LIBEXTRA]; int numfiles = filelist_files_ensure(sfile->files); int i; int num_selected = 0; -- cgit v1.2.3