Code cleanup: BLI_strdupn -> BLI_strdup
authorCampbell Barton <ideasman42@gmail.com>
Wed, 28 May 2014 16:09:45 +0000 (02:09 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 13 Jun 2014 14:47:10 +0000 (00:47 +1000)
source/blender/blenkernel/intern/anim_sys.c
source/blender/editors/animation/drivers.c
source/blender/editors/animation/keyframing.c

index f956474701f34e053c5efc3751268daabb998610..0cb334e0d56bb9d0dbadf622928b930e27a85841 100644 (file)
@@ -1168,7 +1168,7 @@ KS_Path *BKE_keyingset_add_path(KeyingSet *ks, ID *id, const char group_name[],
        
        /* just copy path info */
        /* TODO: should array index be checked too? */
-       ksp->rna_path = BLI_strdupn(rna_path, strlen(rna_path));
+       ksp->rna_path = BLI_strdup(rna_path);
        ksp->array_index = array_index;
        
        /* store flags */
index c8db4ae5892b46e8af92b3b0b4557b70611a38b0..481912f4d1f2da1803308e98b2105d39e319744b 100644 (file)
@@ -109,7 +109,7 @@ FCurve *verify_driver_fcurve(ID *id, const char rna_path[], const int array_inde
                fcu->flag = (FCURVE_VISIBLE | FCURVE_SELECTED);
                
                /* store path - make copy, and store that */
-               fcu->rna_path = BLI_strdupn(rna_path, strlen(rna_path));
+               fcu->rna_path = BLI_strdup(rna_path);
                fcu->array_index = array_index;
                
                /* if add is negative, don't init this data yet, since it will be filled in by the pasted driver */
index 78c87d5876633ff236e439792bdda4d97f1eea20..9dcadcf9193c78b6fce7d8beda796b344e23efbf 100644 (file)
@@ -186,7 +186,7 @@ FCurve *verify_fcurve(bAction *act, const char group[], PointerRNA *ptr,
                        fcu->flag |= FCURVE_ACTIVE;  /* first one added active */
                        
                /* store path - make copy, and store that */
-               fcu->rna_path = BLI_strdupn(rna_path, strlen(rna_path));
+               fcu->rna_path = BLI_strdup(rna_path);
                fcu->array_index = array_index;
                
                /* if a group name has been provided, try to add or find a group, then add F-Curve to it */