Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2007-02-09 21:27:20 +0300
committerAndrea Weikert <elubie@gmx.net>2007-02-09 21:27:20 +0300
commitc7c0e7bf808dbbe93bb3d659eb1c27bcc496fadc (patch)
tree8ef372336c3de476c43edc01f31087a17e490e8e /source/blender/python/BPY_menus.c
parenta6cbfb617fb85e2909b033bae85fed94bd82d5cb (diff)
==== bugfix ====
- fix for #5955 - fixing too short pathnames causing memory overwriting when starting blender from a path with a very long name.
Diffstat (limited to 'source/blender/python/BPY_menus.c')
-rw-r--r--source/blender/python/BPY_menus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c
index bee674c2b7a..2a53ba1adf1 100644
--- a/source/blender/python/BPY_menus.c
+++ b/source/blender/python/BPY_menus.c
@@ -823,8 +823,8 @@ static int bpymenu_ParseDir(char *dirname, char *parentdir, int is_userdir )
struct dirent *de;
struct stat status;
char *file_extension;
- char path[FILE_MAXDIR];
- char subdir[FILE_MAXDIR];
+ char path[FILE_MAX];
+ char subdir[FILE_MAX];
char *s = NULL;
dir = opendir(dirname);