diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-11 19:14:20 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-11 19:14:20 +0400 |
commit | e91ddf02a8cda6182db095abfc0f0752058712e7 (patch) | |
tree | 949b4f4709392c3020113de2a27def6d64872a32 /source/blender/editors/armature/editarmature_sketch.c | |
parent | 5af3b02f72e74c0ed05851d7c38775c042b45b1a (diff) |
Fix T38547: crash in skeleton sketching.
Diffstat (limited to 'source/blender/editors/armature/editarmature_sketch.c')
-rw-r--r-- | source/blender/editors/armature/editarmature_sketch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/armature/editarmature_sketch.c b/source/blender/editors/armature/editarmature_sketch.c index 68141fb85f1..f421cd1b7fb 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); |