Fix buffer size mismatch in SCRIPT_OT_python_file_run

Reading paths over 512 bytes would cause a buffer overrun.
This commit is contained in:
Campbell Barton 2021-08-24 14:52:02 +10:00 committed by Jeroen Bakker
parent 7dd982a9b8
commit 0367ce4b19
Notes: blender-bot 2023-02-13 22:19:21 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@
static int run_pyfile_exec(bContext *C, wmOperator *op)
{
char path[512];
char path[FILE_MAX];
RNA_string_get(op->ptr, "filepath", path);
#ifdef WITH_PYTHON
if (BPY_execute_filepath(C, path, op->reports)) {