[Scummvm-cvs-logs] SF.net SVN: scummvm:[44979] scummvm/trunk/common/str.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Mon Oct 12 13:51:28 CEST 2009


Revision: 44979
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44979&view=rev
Author:   wjpalenstijn
Date:     2009-10-12 11:51:28 +0000 (Mon, 12 Oct 2009)

Log Message:
-----------
Fix broken size in Common::String::printf output in MSVC

Modified Paths:
--------------
    scummvm/trunk/common/str.cpp

Modified: scummvm/trunk/common/str.cpp
===================================================================
--- scummvm/trunk/common/str.cpp	2009-10-12 11:49:32 UTC (rev 44978)
+++ scummvm/trunk/common/str.cpp	2009-10-12 11:51:28 UTC (rev 44979)
@@ -464,6 +464,7 @@
 			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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list