From 93f061fac357bd2c2f86efbf51ff99aaefadf48f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 13 Feb 2011 01:59:16 +0000 Subject: [PATCH] wrong length used with strncmp when comparing RNA path. --- source/blender/editors/curve/editcurve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 0949e3d6214..a024bf087c1 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -1129,7 +1129,7 @@ static void curve_rename_fcurves(Object *obedit, ListBase *orig_curves) if(!strncmp(fcu->rna_path, "splines", 7)) { char *ch= strchr(fcu->rna_path, '.'); - if (ch && (!strncmp(ch, ".bezier_points", 14) || !strncmp(ch, ".points", 8))) + if (ch && (!strncmp(ch, ".bezier_points", 14) || !strncmp(ch, ".points", 7))) fcurve_remove(ad, orig_curves, fcu); } }