Revert a fix for now, might break Win32 build
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@525 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
4c6d684a9f
commit
7d07881116
|
@ -168,8 +168,8 @@ void StringFromFormatV(std::string* out, const char* format, va_list args)
|
||||||
// ARGH! vsnprintf does no longer return -1 on truncation in newer libc!
|
// ARGH! vsnprintf does no longer return -1 on truncation in newer libc!
|
||||||
// WORKAROUND! let's fake the old behaviour (even though it's less efficient).
|
// WORKAROUND! let's fake the old behaviour (even though it's less efficient).
|
||||||
// TODO: figure out why the fix causes an invalid read in strlen called from vsnprintf :(
|
// TODO: figure out why the fix causes an invalid read in strlen called from vsnprintf :(
|
||||||
if (writtenCount >= (int)newSize)
|
// if (writtenCount >= (int)newSize)
|
||||||
writtenCount = -1;
|
// writtenCount = -1;
|
||||||
newSize *= 2;
|
newSize *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue