[Bf-blender-cvs] [7fc2c072fa] snap_system_clip_planes: Fix fix for realloc!

Bastien Montagne noreply at git.blender.org
Fri Feb 24 16:49:10 CET 2017


Commit: 7fc2c072fab86ed7d2f2e66f703773853e3b97dd
Author: Bastien Montagne
Date:   Fri Feb 24 16:48:57 2017 +0100
Branches: snap_system_clip_planes
https://developer.blender.org/rB7fc2c072fab86ed7d2f2e66f703773853e3b97dd

Fix fix for realloc!

===================================================================

M	source/blender/editors/transform/transform_snap_object.c

===================================================================

diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c
index e710a7aab0..b5925aa120 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -2638,7 +2638,7 @@ static bool transform_snap_context_project_view3d_mixed_impl(
 					snpdt->clip.plane = temp_plane;
 #else
 					snpdt->clip.plane = MEM_reallocN(
-					        snpdt->clip.plane, sizeof(*snpdt->clip.plane) * snpdt->clip.plane_num + 1);
+					        snpdt->clip.plane, sizeof(*snpdt->clip.plane) * (snpdt->clip.plane_num + 1));
 #endif
 				}
 				else {




More information about the Bf-blender-cvs mailing list