diff options
Diffstat (limited to 'src/string.cc')
| -rw-r--r-- | src/string.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string.cc b/src/string.cc index d44963ba..b5f04f29 100644 --- a/src/string.cc +++ b/src/string.cc @@ -147,6 +147,7 @@ void String::resize(ByteCount size, char c) for (auto i = current_size; i < target_size; ++i) m_data.data()[i] = c; } + data()[target_size] = 0; } void String::Data::set_size(size_t size) |
