mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 15:36:33 +00:00
Make sure to only assign string without any trailing chars
This commit is contained in:
@@ -3633,7 +3633,8 @@ void Serialiser::Serialise(const char *name, VkPipelineShaderStageCreateInfo &el
|
||||
}
|
||||
else
|
||||
{
|
||||
string str = (char *)m_BufferHead-s.length();
|
||||
string str;
|
||||
str.assign((char *)m_BufferHead-s.length(), s.length());
|
||||
m_StringDB.insert(str);
|
||||
el.pName = m_StringDB.find(str)->c_str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user