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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-10 00:19:00 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-10 00:19:00 +0400
commitf198acd5dd6867401e5517f8a919aaf53af85e84 (patch)
tree6a29f74a5dfd3188681615d82b608efdb1af21d0 /source/blender/src/transform_orientations.c
parentdf1d59805ff74ee5ab36d5cc6d400f8a4eb12eff (diff)
Fix for bug #14775: memorblock end corrupt print, needed to allocate
one byte more for the align menu string 0 terminator.
Diffstat (limited to 'source/blender/src/transform_orientations.c')
-rw-r--r--source/blender/src/transform_orientations.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/transform_orientations.c b/source/blender/src/transform_orientations.c
index 9c7a2f67b89..fc9dfbb902e 100644
--- a/source/blender/src/transform_orientations.c
+++ b/source/blender/src/transform_orientations.c
@@ -352,7 +352,7 @@ char * BIF_menustringTransformOrientation(char *title) {
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);