diff --git a/src/string.cc b/src/string.cc index 02e79f3f..df360ae0 100644 --- a/src/string.cc +++ b/src/string.cc @@ -229,7 +229,7 @@ String format(StringView fmt, ArrayView params) if (opening == end) break; - if (opening != it && res.back() == '\\') + if (opening != it && *(opening-1) == '\\') { res.back() = '{'; it = opening + 1;