Bugfix #4627: headerResize() was overflowing a string parameter and
authorKen Hughes <khughes@pacific.edu>
Sat, 8 Jul 2006 14:24:57 +0000 (14:24 +0000)
committerKen Hughes <khughes@pacific.edu>
Sat, 8 Jul 2006 14:24:57 +0000 (14:24 +0000)
destroying part of the transform matrix.  Also remove a debigging printf.

source/blender/src/transform.c
source/blender/src/transform_numinput.c

index 7f6b4bccdfab625fe8e767d6da8d81104926b815..f450628b64027ebe25680e468644c45fa7690342 100755 (executable)
@@ -1514,7 +1514,7 @@ int Resize(TransInfo *t, short mval[2])
        float size[3], mat[3][3];
        float ratio;
        int i;
-       char str[50];
+       char str[200];
 
        /* for manipulator, center handle, the scaling can't be done relative to center */
        if( (t->flag & T_USES_MANIPULATOR) && t->con.mode==0) {
index c59fc8d61044fc01bcd1623799ec28eb00db4024..730d25545bdf78602c0a5d109cc8f48bc70b4285 100755 (executable)
@@ -242,8 +242,6 @@ char handleNumInput(NumInput *n, unsigned short event)
                return 0;
        }
        
-       printf("value %f cntrl %d\n", n->val[idx], n->ctrl[idx]);
-
        /* REDRAW SINCE NUMBERS HAVE CHANGED */
        return 1;
 }