found a bug by accident.
[blender.git] / source / blender / makesrna / intern / rna_access.c
index 4eebfc529203dcae641dc7cb2e8e777c9c1e6e39..7d366afd3cac95a330dabde7adf6dd1fcc4520ae 100644 (file)
@@ -4746,7 +4746,7 @@ ParameterList *RNA_parameter_list_create(ParameterList *parms, PointerRNA *UNUSE
                                case PROP_STRING: {
                                        const char *defvalue= ((StringPropertyRNA*)parm)->defaultvalue;
                                        if(defvalue && defvalue[0])
-                                               memcpy(data, &defvalue, size);
+                                               BLI_strncpy(data, defvalue, size);
                                        break;
                                }
                                case PROP_POINTER: