Fix incorrect memcpy
This commit is contained in:
parent
56ea8ad91d
commit
c9091951f8
@ -223,7 +223,7 @@ public:
|
||||
m_size = str.length();
|
||||
if (m_size > C) { m_size = m_capacity; }
|
||||
|
||||
mtl::memcpy(m_buf, str, m_size);
|
||||
mtl::memcpy(m_buf, str.c_str(), m_size);
|
||||
m_str[m_size] = '\0';
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user