From fefdce4e415c101f8ee9ac3d0c893f987e022abb Mon Sep 17 00:00:00 2001 From: Myles Busig Date: Thu, 7 Mar 2024 14:44:17 -0700 Subject: [PATCH] Fix incorrect memcpy --- include/mtl/string.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mtl/string.hpp b/include/mtl/string.hpp index 5195e34..47c5af6 100644 --- a/include/mtl/string.hpp +++ b/include/mtl/string.hpp @@ -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'; } };