/[pcsx2_0.9.7]/trunk/common/src/Utilities/FastFormatString.cpp
ViewVC logotype

Diff of /trunk/common/src/Utilities/FastFormatString.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/common/src/Utilities/FastFormatString.cpp	2010/12/23 11:48:33	279
+++ trunk/common/src/Utilities/FastFormatString.cpp	2010/12/23 12:02:12	280
@@ -55,7 +55,7 @@
 	typedef char CharType;
 	typedef CharBufferType BufferType;
 
-	static const uint BufferCount = 4;
+	static const uint BufferCount = 6;
 
 	BufferType		m_buffers[BufferCount];
 	uint			m_curslot;
@@ -69,7 +69,7 @@
 
 		for (uint i=0; i<BufferCount; ++i)
 		{
-			m_buffers[i].Alloc(1024);
+			m_buffers[i].Alloc(512);
 		}
 
 		m_curslot = 0;
@@ -174,7 +174,7 @@
 
 		len += writepos;
 		if (len < size) break;
-		buffer.Alloc( len + 128 );
+		buffer.Resize( len + 128 );
 	};
 
 	// performing an assertion or log of a truncated string is unsafe, so let's not; even
@@ -205,7 +205,7 @@
 
 		len += writepos;
 		if (len < size) return len;
-		buffer.Alloc( (len + 128) * sizeof(wxChar) );
+		buffer.Resize( (len + 128) * sizeof(wxChar) );
 	};
 
 	// performing an assertion or log of a truncated string is unsafe, so let's not; even

 

  ViewVC Help
Powered by ViewVC 1.1.22