mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
Change snprintf to sprintf to be consistent with surrounding code.
svn-id: r4902
This commit is contained in:
parent
0069fb1072
commit
943de561bf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user