use BLI_strnlen rather then strlen when comparing against fixed lengths.
[blender.git] / source / blender / blenkernel / intern / ipo.c
index 7a32562d3d794a25cd3b704afa7a0e2fd1c6eeb0..5be8bda4cd91fa75383e3af08367f98e0d4a11e5 100644 (file)
@@ -1197,7 +1197,7 @@ static void icu_to_fcurves (ID *id, ListBase *groups, ListBase *list, IpoCurve *
                                fcurve= fcu;
                                
                        /* set path */
-                       fcurve->rna_path= BLI_strdupn(abp->path, strlen(abp->path));
+                       fcurve->rna_path= BLI_strdup(abp->path);
                        fcurve->array_index= abp->array_index;
                        
                        /* convert keyframes