diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-09-23 07:45:27 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-09-23 07:45:27 -0500 |
commit | d6497e9ad3924711990b4452993f20c2603fd955 (patch) | |
tree | d01cce612c61d9de8a80194626e0a819dc30bf0d /source | |
parent | 0b860bb5dd6d2007db605291d239a6a9d41f57d1 (diff) |
Fix bug in string.
Diffstat (limited to 'source')
-rw-r--r-- | source/fud_string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<utf8*>(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); } } |