[ox/std] Fix resize to set null terminator
This commit is contained in:
parent
660f2f5633
commit
b882a47e58
1
deps/ox/src/ox/std/string.hpp
vendored
1
deps/ox/src/ox/std/string.hpp
vendored
@ -194,6 +194,7 @@ class BasicString {
|
||||
|
||||
constexpr void resize(size_t sz) noexcept {
|
||||
m_buff.resize(sz);
|
||||
m_buff[sz - 1] = 0;
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
|
Loading…
Reference in New Issue
Block a user