diff options
author | Christian Persch <chpe@src.gnome.org> | 2022-06-21 23:56:22 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2022-06-21 23:56:22 +0200 |
commit | 0c949a6b9a8874cdafa56f64bd8650d7b9349133 (patch) | |
tree | 618483686c3248b5f519e80da6ba8e1699121009 | |
parent | 1cce95426d442f5af0d7ed684debf9389323591f (diff) | |
download | vte-0c949a6b9a8874cdafa56f64bd8650d7b9349133.tar.gz |
lib: Fix reserved size calculation
-rw-r--r-- | src/pastify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pastify.cc b/src/pastify.cc index e3d7d8d7..2047bf5b 100644 --- a/src/pastify.cc +++ b/src/pastify.cc @@ -45,7 +45,7 @@ pastify_string(std::string_view str, bool c1) { auto rv = std::string{}; - rv.reserve(str.size() + 1 + insert_brackets ? 12 : 0); + rv.reserve((str.size() + 1 + insert_brackets) ? 12 : 0); if (insert_brackets) { if (c1) |