diff options
author | Ken Hughes <khughes@pacific.edu> | 2006-07-08 18:24:57 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2006-07-08 18:24:57 +0400 |
commit | cf266ea2af46e079f86f44835d64e446d1bdbecd (patch) | |
tree | 17ea677558623038babecee9a5763d0149cc8050 /source/blender | |
parent | 00b55aba24908bb4f22a263069a6659bd3556cf5 (diff) |
Bugfix #4627: headerResize() was overflowing a string parameter and
destroying part of the transform matrix. Also remove a debigging printf.
Diffstat (limited to 'source/blender')
-rwxr-xr-x | source/blender/src/transform.c | 2 | ||||
-rwxr-xr-x | source/blender/src/transform_numinput.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index 7f6b4bccdfa..f450628b640 100755 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -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) { diff --git a/source/blender/src/transform_numinput.c b/source/blender/src/transform_numinput.c index c59fc8d6104..730d25545bd 100755 --- a/source/blender/src/transform_numinput.c +++ b/source/blender/src/transform_numinput.c @@ -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; } |