Fix incorrect memcpy
This commit is contained in:
parent
e8601d7807
commit
fefdce4e41
@ -223,7 +223,7 @@ public:
|
|||||||
m_size = str.length();
|
m_size = str.length();
|
||||||
if (m_size > C) { m_size = m_capacity; }
|
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';
|
m_str[m_size] = '\0';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user