From d6497e9ad3924711990b4452993f20c2603fd955 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 23 Sep 2024 07:45:27 -0500 Subject: Fix bug in string. --- source/fud_string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/fud_string.cpp b/source/fud_string.cpp index cd35bdb..27496ff 100644 --- a/source/fud_string.cpp +++ b/source/fud_string.cpp @@ -64,7 +64,7 @@ String::String(const char* cString) m_capacity = m_length + 1; m_data = static_cast(fudAlloc(m_capacity)); fudAssert(m_data != nullptr); - fudAssert(copyMem(m_buffer.data(), m_capacity, cString, m_length) == FudStatus::Success); + fudAssert(copyMem(m_data, m_capacity, cString, m_length) == FudStatus::Success); fudAssert(nullTerminate() == FudStatus::Success); } } -- cgit v1.2.3