[Bf-blender-cvs] [e91ddf0] master: Fix T38547: crash in skeleton sketching.
Brecht Van Lommel
noreply at git.blender.org
Tue Feb 11 16:15:34 CET 2014
Commit: e91ddf02a8cda6182db095abfc0f0752058712e7
Author: Brecht Van Lommel
Date: Tue Feb 11 16:14:20 2014 +0100
https://developer.blender.org/rBe91ddf02a8cda6182db095abfc0f0752058712e7
Fix T38547: crash in skeleton sketching.
===================================================================
M source/blender/editors/armature/editarmature_sketch.c
===================================================================
diff --git a/source/blender/editors/armature/editarmature_sketch.c b/source/blender/editors/armature/editarmature_sketch.c
index 68141fb..f421cd1 100644
--- a/source/blender/editors/armature/editarmature_sketch.c
+++ b/source/blender/editors/armature/editarmature_sketch.c
@@ -2386,7 +2386,7 @@ static int sketch_draw_stroke(bContext *C, wmOperator *op, const wmEvent *event)
SK_DrawData *dd;
SK_Sketch *sketch = contextSketch(C, 1);
- op->customdata = dd = MEM_callocN(sizeof("SK_DrawData"), "SketchDrawData");
+ op->customdata = dd = MEM_callocN(sizeof(SK_DrawData), "SketchDrawData");
sk_initDrawData(dd, event->mval);
sk_start_draw_stroke(sketch);
@@ -2412,7 +2412,7 @@ static int sketch_draw_gesture(bContext *C, wmOperator *op, const wmEvent *event
SK_Sketch *sketch = contextSketch(C, 1); /* create just to be sure */
sk_cancelStroke(sketch);
- op->customdata = dd = MEM_callocN(sizeof("SK_DrawData"), "SketchDrawData");
+ op->customdata = dd = MEM_callocN(sizeof(SK_DrawData), "SketchDrawData");
sk_initDrawData(dd, event->mval);
sk_start_draw_gesture(sketch);
More information about the Bf-blender-cvs
mailing list