Revision: 14858
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14858
Author:   campbellbarton
Date:     2008-05-16 01:16:42 +0200 (Fri, 16 May 2008)

Log Message:
-----------
own error, off by 1 with string allocation

Modified Paths:
--------------
    trunk/blender/source/blender/src/toolbox.c

Modified: trunk/blender/source/blender/src/toolbox.c
===================================================================
--- trunk/blender/source/blender/src/toolbox.c  2008-05-15 20:45:02 UTC (rev 
14857)
+++ trunk/blender/source/blender/src/toolbox.c  2008-05-15 23:16:42 UTC (rev 
14858)
@@ -314,7 +314,7 @@
        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, "");


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to