diff options
author | Andrea Weikert <elubie@gmx.net> | 2007-02-09 21:27:20 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2007-02-09 21:27:20 +0300 |
commit | c7c0e7bf808dbbe93bb3d659eb1c27bcc496fadc (patch) | |
tree | 8ef372336c3de476c43edc01f31087a17e490e8e /source/blender/python/BPY_menus.c | |
parent | a6cbfb617fb85e2909b033bae85fed94bd82d5cb (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.c | 4 |
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); |