diff options
author | Willem Jan Palenstijn | 2009-10-12 11:51:28 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-10-12 11:51:28 +0000 |
commit | 833e6f41d5fac26a4b0a687a70f7ecfe57fcee76 (patch) | |
tree | f8e1f4a101aee606ac36ab730268039b8b5ab87c /common | |
parent | ab1f2dac77448b848f1e736e6b8cc4162f6a5ec1 (diff) | |
download | scummvm-rg350-833e6f41d5fac26a4b0a687a70f7ecfe57fcee76.tar.gz scummvm-rg350-833e6f41d5fac26a4b0a687a70f7ecfe57fcee76.tar.bz2 scummvm-rg350-833e6f41d5fac26a4b0a687a70f7ecfe57fcee76.zip |
Fix broken size in Common::String::printf output in MSVC
svn-id: r44979
Diffstat (limited to 'common')
-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; |