diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-12 04:14:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-12 04:14:32 +0400 |
commit | ac133d5d26c27d1cbdbfda01c725797923fd54ac (patch) | |
tree | 48a94c7fcb3028753264eb7da7bbf937fcec9758 /source/blender/editors/space_file/space_file.c | |
parent | aae5c9b58db6edc7672527617da212fe1e68dfdd (diff) |
bugfix [#23270] Long directory name segmentation fault in File brower
file->relname was being edited when its length allocated at the size of the original name, realloc'ing failed because the old string was still used by a button.
Diffstat (limited to 'source/blender/editors/space_file/space_file.c')
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index 2f023aeebc1..7b9423332f2 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -232,6 +232,7 @@ static void file_refresh(const bContext *C, ScrArea *sa) file->flags |= EDITING; } } + BLI_strncpy(sfile->params->renameedit, sfile->params->renamefile, sizeof(sfile->params->renameedit)); params->renamefile[0] = '\0'; } if (sfile->layout) sfile->layout->dirty= 1; |