mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix serialisation of rdctype::str to always NULL-terminate
This commit is contained in:
@@ -506,9 +506,10 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
create_array_uninit(el, sz);
|
||||
create_array_uninit(el, sz + 1);
|
||||
for(int32_t i = 0; i < sz; i++)
|
||||
Serialise("", el.elems[i]);
|
||||
el.elems[sz] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user