diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-07 13:05:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-07 13:05:51 +0400 |
commit | ed7dbbdfe946fa7bf22d319997ea3634bc48cab3 (patch) | |
tree | e91a1555b3889995529cc7a34cebfae5609d1efc /source/blender | |
parent | bc961c90a2fffa1323036c30cb7db69e1c40537d (diff) |
fix for buffer overrun on windows by kjym3 on IRC.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 0c88c7d9c81..73188b3f830 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -421,7 +421,7 @@ static int python_script_exec(bContext *C, const char *fn, struct Text *text, fclose(fp); - pystring = MEM_mallocN(strlen(fn) + 36, "pystring"); + pystring = MEM_mallocN(strlen(fn) + 37, "pystring"); pystring[0] = '\0'; sprintf(pystring, "f=open(r'%s');exec(f.read());f.close()", fn); py_result = PyRun_String(pystring, Py_file_input, py_dict, py_dict); |