Fix incorrect memcpy

This commit is contained in:
Myles Busig 2024-03-07 14:44:17 -07:00
parent e8601d7807
commit fefdce4e41

View File

@ -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';
}
};