mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-05 00:36:57 +00:00
Fix broken size in Common::String::printf output in MSVC
svn-id: r44979
This commit is contained in:
parent
ab1f2dac77
commit
833e6f41d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user