[Scummvm-cvs-logs] SF.net SVN: scummvm:[45295] scummvm/trunk/engines/agi/text.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Wed Oct 21 03:01:24 CEST 2009


Revision: 45295
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45295&view=rev
Author:   mthreepwood
Date:     2009-10-21 01:01:23 +0000 (Wed, 21 Oct 2009)

Log Message:
-----------
Fix a regression in agiSprintf.

Modified Paths:
--------------
    scummvm/trunk/engines/agi/text.cpp

Modified: scummvm/trunk/engines/agi/text.cpp
===================================================================
--- scummvm/trunk/engines/agi/text.cpp	2009-10-20 23:07:32 UTC (rev 45294)
+++ scummvm/trunk/engines/agi/text.cpp	2009-10-21 01:01:23 UTC (rev 45295)
@@ -602,7 +602,7 @@
 		}
 	}
 
-	assert(sizeof(agiSprintf_buf) < p.size());
+	assert(p.size() < sizeof(agiSprintf_buf));
 	strcpy(agiSprintf_buf, p.c_str());
 	return agiSprintf_buf;
 }


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