[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34808] trunk/blender/source/blender/ editors/curve/editcurve.c: wrong length used with strncmp when comparing RNA path.
Campbell Barton
ideasman42 at gmail.com
Sun Feb 13 02:59:18 CET 2011
Revision: 34808
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34808
Author: campbellbarton
Date: 2011-02-13 01:59:16 +0000 (Sun, 13 Feb 2011)
Log Message:
-----------
wrong length used with strncmp when comparing RNA path.
Modified Paths:
--------------
trunk/blender/source/blender/editors/curve/editcurve.c
Modified: trunk/blender/source/blender/editors/curve/editcurve.c
===================================================================
--- trunk/blender/source/blender/editors/curve/editcurve.c 2011-02-13 00:37:42 UTC (rev 34807)
+++ trunk/blender/source/blender/editors/curve/editcurve.c 2011-02-13 01:59:16 UTC (rev 34808)
@@ -1129,7 +1129,7 @@
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);
}
}
More information about the Bf-blender-cvs
mailing list