fixing various clang warnings

This commit is contained in:
Noel Berry committed 2021-03-20 22:17:40 -07:00
1 parent 3913cf7c02
commit 4351d77f73
7 files changed
+38 -31

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ void Str::reserve(int size)
{
char* local = data();
m_buffer = new char[m_capacity];
strncpy(m_buffer, local, m_local_size);
memcpy(m_buffer, local, m_local_size);
m_buffer[m_local_size] = '\0';
}
// expand from empty buffer