mirror of
https://github.com/NoelFB/blah.git
synced 2025-09-13 13:24:26 +08:00
fixing various clang warnings
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user