diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-07 20:18:20 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:01 +0200 |
commit | 2d9661790db30eb169d07d36b485943c598253b9 (patch) | |
tree | acb95c260e07a9ee945906216e4d2388a91bbebf /src/engine/components/statusline.hpp | |
parent | 8805b1fe27344e8086cebabf869b7a02d2376f05 (diff) |
fix: prevent statusline heap buffer overflow
Diffstat (limited to 'src/engine/components/statusline.hpp')
-rw-r--r-- | src/engine/components/statusline.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/components/statusline.hpp b/src/engine/components/statusline.hpp index 3fdb8d3..8c1969b 100644 --- a/src/engine/components/statusline.hpp +++ b/src/engine/components/statusline.hpp @@ -38,6 +38,9 @@ private: std::unordered_map<StatusLineSection, int32_t> _section_lengths; bool _need_render; + void + _matrix_write_string(const Vector2 &position, const std::string_view &str) noexcept; + [[nodiscard]] auto _get_section_start_x(StatusLineSection section) const noexcept -> int32_t; |