[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16446] trunk/blender/source/blender/src/ transform_orientations.c:
Brecht Van Lommel
brechtvanlommel at pandora.be
Tue Sep 9 22:19:00 CEST 2008
Revision: 16446
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16446
Author: blendix
Date: 2008-09-09 22:19:00 +0200 (Tue, 09 Sep 2008)
Log Message:
-----------
Fix for bug #14775: memorblock end corrupt print, needed to allocate
one byte more for the align menu string 0 terminator.
Modified Paths:
--------------
trunk/blender/source/blender/src/transform_orientations.c
Modified: trunk/blender/source/blender/src/transform_orientations.c
===================================================================
--- trunk/blender/source/blender/src/transform_orientations.c 2008-09-09 20:09:54 UTC (rev 16445)
+++ trunk/blender/source/blender/src/transform_orientations.c 2008-09-09 20:19:00 UTC (rev 16446)
@@ -352,7 +352,7 @@
char *str_menu, *p;
- str_menu = MEM_callocN(strlen(menu) + strlen(title) + 40 * BIF_countTransformOrientation(), "UserTransSpace from matrix");
+ str_menu = MEM_callocN(strlen(menu) + strlen(title) + 1 + 40 * BIF_countTransformOrientation(), "UserTransSpace from matrix");
p = str_menu;
p += sprintf(str_menu, "%s", title);
More information about the Bf-blender-cvs
mailing list