1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-30 23:37:17 +03:00

Fix String::resize not zero-terminating

This commit is contained in:
Maxime Coste 2019-11-17 09:50:18 +11:00
parent e33ba455c8
commit 5378dabdec

View File

@ -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)