diff options
author | DS <ds.desour@proton.me> | 2023-03-11 17:46:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 17:46:49 +0100 |
commit | b1ed0ef721d1ef59e7266fbf975f4d2e33b44041 (patch) | |
tree | 3e7eea444fb734e4a08fd9d14153ca94125b5cce /src/client/clientmap.cpp | |
parent | 1aeb0280df208a32f22b637f0aa6e9b01c451a31 (diff) | |
download | minetest-b1ed0ef721d1ef59e7266fbf975f4d2e33b44041.tar.xz |
Fix ChatPrompt crash in very narrow windows (#13305)
In very narrow windows, `m_cols` can be small (i.e. 0).
Hence, `m_view <= m_line.size() + 1 - m_cols` does not guarantee
`m_view <= m_line.size()`.
`std::string::substr(pos, npos)` requires `pos <= size()`.
Diffstat (limited to 'src/client/clientmap.cpp')
0 files changed, 0 insertions, 0 deletions