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:
authorCampbell Barton <ideasman42@gmail.com>2008-05-16 03:16:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-05-16 03:16:42 +0400
commitec253c3918bfd8ca8a69b5b9086d90ef14dac138 (patch)
tree1efa46e3dfa726d2991af8a61d5f537d47a604be /source/blender/src/toolbox.c
parent9df0d227cb56df753928659e3dc8d076d88d7383 (diff)
own error, off by 1 with string allocation
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r--source/blender/src/toolbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c
index 1cc4a8fd31c..c7a9147d015 100644
--- a/source/blender/src/toolbox.c
+++ b/source/blender/src/toolbox.c
@@ -314,7 +314,7 @@ short sbutton(char *var, short min, short max, char *str)
x1=mval[0]-250;
y1=mval[1]-20;
- editvar = MEM_callocN(max, "sbutton");
+ editvar = MEM_callocN(max+1, "sbutton");
BLI_strncpy(editvar, var, max);
uiDefButC(block, TEX, 32766, str, x1+5,y1+10,225,20, editvar,(float)min,(float)max, 0, 0, "");