Fix broken size in Common::String::printf output in MSVC

svn-id: r44979
This commit is contained in:
Willem Jan Palenstijn 2009-10-12 11:51:28 +00:00
parent ab1f2dac77
commit 833e6f41d5

View File

@ -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;