mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-28 17:47:11 +00:00
Fix serialisation of rdctype::str to always NULL-terminate
This commit is contained in:
1 parent
cd0856cd4c
commit
7d5e047e66
1 file changed
+2
-1
@@ -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