mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Don't read from char[] string in writing mode
This commit is contained in:
@@ -638,7 +638,9 @@ public:
|
||||
Serialiser &Serialise(const char *name, char (&el)[N],
|
||||
SerialiserFlags flags = SerialiserFlags::NoFlags)
|
||||
{
|
||||
std::string str = el;
|
||||
std::string str;
|
||||
if(IsReading())
|
||||
str = el;
|
||||
Serialise(name, str, flags);
|
||||
if(str.length() >= N)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user