[Scummvm-cvs-logs] CVS: scummvm/common gameDetector.cpp,1.4,1.5
Matt Hargett
matt_hargett at users.sourceforge.net
Sat Sep 7 14:00:07 CEST 2002
Update of /cvsroot/scummvm/scummvm/common
In directory usw-pr-cvs1:/tmp/cvs-serv23180a/scummvm/common
Modified Files:
gameDetector.cpp
Log Message:
Change snprintf to sprintf to be consistent with surrounding code.
Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/gameDetector.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- gameDetector.cpp 7 Sep 2002 19:55:16 -0000 1.4
+++ gameDetector.cpp 7 Sep 2002 20:59:56 -0000 1.5
@@ -551,7 +551,7 @@
// need to allocate 2 extra bytes, one for the "/" and one for the NULL terminator
_gameDataPath = (char *)malloc((strlen(slashless) + 2) * sizeof(char));
- snprintf(_gameDataPath, strlen(_gameDataPath), "%s/", slashless);
+ sprintf(_gameDataPath, "%s/", slashless);
}
if (_amiga)
More information about the Scummvm-git-logs
mailing list