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:
hrydgard 2008-09-14 09:54:48 +00:00
parent 4c6d684a9f
commit 7d07881116
1 changed files with 2 additions and 2 deletions

View File

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