mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-25 16:18:57 +08:00
small fix to previous string commit
This commit is contained in:
parent
916ddc2020
commit
90cb51110d
|
@ -140,6 +140,7 @@ namespace Blah
|
||||||
m_heap_buffer.erase(new_length, s_len() - new_length);
|
m_heap_buffer.erase(new_length, s_len() - new_length);
|
||||||
else
|
else
|
||||||
m_stack_buffer.erase(new_length, s_len() - new_length);
|
m_stack_buffer.erase(new_length, s_len() - new_length);
|
||||||
|
s_ptr()[new_length - 1] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
StackString trim() const
|
StackString trim() const
|
||||||
|
|
Loading…
Reference in New Issue
Block a user