summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/StringUtil.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-09-14 09:54:48 +0000
committerhrydgard <hrydgard@gmail.com>2008-09-14 09:54:48 +0000
commit7d0788111660f4bfd1c3356a6e8797e353523acb (patch)
treed247e63651965a8aecfa071680c95afef9386f75 /Source/Core/Common/Src/StringUtil.cpp
parent4c6d684a9ff7a912fa8f02b272c902ea6bbe6cbb (diff)
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
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
-rw-r--r--Source/Core/Common/Src/StringUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp
index 638c301f24..8e9ff18601 100644
--- a/Source/Core/Common/Src/StringUtil.cpp
+++ b/Source/Core/Common/Src/StringUtil.cpp
@@ -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!
// 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 :(
- if (writtenCount >= (int)newSize)
- writtenCount = -1;
+// if (writtenCount >= (int)newSize)
+// writtenCount = -1;
newSize *= 2;
}