aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMatt Hargett2002-09-07 20:59:56 +0000
committerMatt Hargett2002-09-07 20:59:56 +0000
commit943de561bf51d4e553be44fe612eab94e5c00391 (patch)
tree7b1c8dec1f0b151694337672413aac2c0de6dd14 /common
parent0069fb107267705b186fbed098a62a78624855ae (diff)
downloadscummvm-rg350-943de561bf51d4e553be44fe612eab94e5c00391.tar.gz
scummvm-rg350-943de561bf51d4e553be44fe612eab94e5c00391.tar.bz2
scummvm-rg350-943de561bf51d4e553be44fe612eab94e5c00391.zip
Change snprintf to sprintf to be consistent with surrounding code.
svn-id: r4902
Diffstat (limited to 'common')
-rw-r--r--common/gameDetector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index 94e46da0dc..56c2eec937 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -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)