edits to the bone copy metarig type from Cessen, pointcache warning fix
[blender.git] / source / blender / makesrna / intern / rna_ID.c
index 32b6de40a030308d644ae93abcc2ee4627a7da31..2aeb600bc423e8142d76d0334427d5669e425374 100644 (file)
@@ -246,7 +246,7 @@ static void rna_IDPropertyGroup_name_get(PointerRNA *ptr, char *str)
        if(idprop && idprop->type == IDP_STRING)
                strcpy(str, idprop->data.pointer);
        else
-               strcpy(str, "");
+               str[0]= '\0';
 }
 
 void rna_IDPropertyGroup_name_set(PointerRNA *ptr, const char *value)