diff --git a/source/blender/python/api2_2x/Ipocurve.c b/source/blender/python/api2_2x/Ipocurve.c index 485bc79e922..4a7fe47db29 100644 --- a/source/blender/python/api2_2x/Ipocurve.c +++ b/source/blender/python/api2_2x/Ipocurve.c @@ -498,7 +498,7 @@ static PyObject *IpoCurve_append( C_IpoCurve * self, PyObject * args ) BezTriple *newb = MEM_callocN( (icu->totvert+1)*sizeof(BezTriple), "BPyBeztriple" ); if( icu->bezt ) { - memcpy( newb, icu->bezt, ( icu->totvert+1 )*sizeof( BezTriple ) ); + memcpy( newb, icu->bezt, ( icu->totvert )*sizeof( BezTriple ) ); MEM_freeN( icu->bezt ); } icu->bezt = newb;