diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 7b0e78a69d..cc851b8ff3 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -1702,7 +1702,7 @@ public: buf, -1, mbBuf.data(), - n, + n + 1, // size in bytes, not length NULL, NULL ) == 0 ||