Change snprintf to sprintf to be consistent with surrounding code.

svn-id: r4902
This commit is contained in:
Matt Hargett 2002-09-07 20:59:56 +00:00
parent 0069fb1072
commit 943de561bf

View File

@ -551,7 +551,7 @@ int GameDetector::detectMain(int argc, char **argv)
// 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)