aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)