[Scummvm-cvs-logs] SF.net SVN: scummvm:[42744] scummvm/trunk/engines/sci/sci.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Sat Jul 25 12:26:17 CEST 2009


Revision: 42744
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42744&view=rev
Author:   wjpalenstijn
Date:     2009-07-25 10:26:17 +0000 (Sat, 25 Jul 2009)

Log Message:
-----------
Use new Common::String::printf

Modified Paths:
--------------
    scummvm/trunk/engines/sci/sci.cpp

Modified: scummvm/trunk/engines/sci/sci.cpp
===================================================================
--- scummvm/trunk/engines/sci/sci.cpp	2009-07-25 10:25:57 UTC (rev 42743)
+++ scummvm/trunk/engines/sci/sci.cpp	2009-07-25 10:26:17 UTC (rev 42744)
@@ -283,9 +283,7 @@
 }
 
 Common::String SciEngine::getSavegameName(int nr) const {
-	char extension[6];
-	snprintf(extension, sizeof(extension), ".%03d", nr);
-	return _targetName + extension;
+	return _targetName + Common::String::printf(".%03d", nr);
 }
 
 Common::String SciEngine::getSavegamePattern() const {


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