RNA: ensure string size with RNA_property_string_get_alloc
This commit is contained in:
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user