diff options
Diffstat (limited to 'common/str.cpp')
-rw-r--r-- | common/str.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/str.cpp b/common/str.cpp index 834c4cd362..2f657d2890 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -464,6 +464,7 @@ String String::printf(const char *fmt, ...) { len = vsnprintf(output._str, size, fmt, va); va_end(va); } while (len == -1 || len >= size); + output._size = len; } else if (len < (int)_builtinCapacity) { // vsnprintf succeeded output._size = len; |