diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2026-04-10 00:12:50 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2026-04-17 23:45:49 +0300 |
| commit | 9c34ecf4a52379520d30b024c199f5ca6c5b38af (patch) | |
| tree | ca01e66f98ee90a30ebf0adef1facdad617bae79 /lib/utils/mu-html-to-text.cc | |
| parent | 08ed7d2a8cd0a250cba7d0d918a7ebeaf778fc10 (diff) | |
lib/utils: small cleanupsrelease/1.12
Fix some static analysis warnings
Diffstat (limited to 'lib/utils/mu-html-to-text.cc')
| -rw-r--r-- | lib/utils/mu-html-to-text.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/mu-html-to-text.cc b/lib/utils/mu-html-to-text.cc index 08f1f4d..69ff232 100644 --- a/lib/utils/mu-html-to-text.cc +++ b/lib/utils/mu-html-to-text.cc @@ -112,7 +112,7 @@ public: * @return true or false */ bool looking_at(std::string_view str) const { - if (pos_ >= html_.size() || pos_ + str.size() >= html_.size()) + if (pos_ >= html_.size() || pos_ + str.size() > html_.size()) return false; else return matches({html_.data()+pos_, str.size()}, str); |
