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>2008-03-30 20:18:01 +0400
committerAndrea Weikert <elubie@gmx.net>2008-03-30 20:18:01 +0400
commitd9de141077873c9379d0bd6ea745b60f5180c4d2 (patch)
tree36c40794cad938487904814b022f886b9eef9cc9 /source/blender/python/BPY_interface.c
parentcc4858cde045d17cef5ea9c847484e3168364bd4 (diff)
== bugfix ==
fix for [#6950] Blender crashes when .blog file top line is 160 characters or more - made sure BLI_convertstringcode doesn't return more than 240 chars - went through all callers and fixed places where string passed to BLI_convertstringcode was too short - TODO: look into increasing sample->name and sound->name too, I prevented crashes, but filename might get shortened.
Diffstat (limited to 'source/blender/python/BPY_interface.c')
-rw-r--r--source/blender/python/BPY_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c
index 1f028e49070..7ba2a81e716 100644
--- a/source/blender/python/BPY_interface.c
+++ b/source/blender/python/BPY_interface.c
@@ -1004,10 +1004,10 @@ int BPY_menu_do_python( short menutype, int event )
}
if( pym->dir ) { /* script is in U.pythondir */
- char upythondir[FILE_MAXDIR];
+ char upythondir[FILE_MAX];
/* dirs in Blender can be "//", which has a special meaning */
- BLI_strncpy(upythondir, U.pythondir, FILE_MAXDIR);
+ BLI_strncpy(upythondir, U.pythondir, FILE_MAX);
BLI_convertstringcode(upythondir, G.sce, 0); /* if so, this expands it */
BLI_make_file_string( "/", filestr, upythondir, pym->filename );
}