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:
authorWillian Padovani Germano <wpgermano@gmail.com>2004-06-21 16:01:23 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2004-06-21 16:01:23 +0400
commita41759cb8b77e75878bbcc70d3a0550f5545cb91 (patch)
treede8f8cf7e8d223d9501f2b506fab24245747780f /source/blender/python/api2_2x/Sys.c
parent625e7fb12cacf2f2db81196fbe54c8efe3e3cd90 (diff)
- Scripts:
Campbell Barton updated his Wavefront OBJ scripts and Ben Omari updated his DirectX 7 and 8 ones (thanks both). The other listed scripts had minor updates to accomodate the menu changes. - Scripts in menus: renamed Tools to Object, Generators to Add, and Modifiers to Mesh (Metaball, Curve, Surface can be added later), to integrate better in the interface. - Fixed a bug in Blender.sys.makename: last letter of file extension was being cut out.
Diffstat (limited to 'source/blender/python/api2_2x/Sys.c')
-rw-r--r--source/blender/python/api2_2x/Sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Sys.c b/source/blender/python/api2_2x/Sys.c
index a7356d39639..9bf6dec7283 100644
--- a/source/blender/python/api2_2x/Sys.c
+++ b/source/blender/python/api2_2x/Sys.c
@@ -291,7 +291,7 @@ static PyObject *M_sys_makename(PyObject *self, PyObject *args, PyObject *kw)
if (dot) n = dot - basename;
else n = strlen(basename);
- BLI_strncpy(basename + n, ext, lenext);
+ BLI_strncpy(basename + n, ext, lenext + 1);
basename[n+lenext] = '\0';
}
}