RNA: ensure string size with RNA_property_string_get_alloc

This commit is contained in:
Campbell Barton 2023-05-07 13:22:35 +10:00
parent 3ed297633d
commit 0cf682f570

@ -3340,6 +3340,10 @@ void RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop, char *value)
char *RNA_property_string_get_alloc(
PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen, int *r_len)
{
if (fixedbuf) {
BLI_string_debug_size(fixedbuf, fixedlen);
}
char *buf;
int length;