aboutsummaryrefslogtreecommitdiff
path: root/simon/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simon/sound.cpp')
-rw-r--r--simon/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp
index 6e7724a44e..c90dddbca4 100644
--- a/simon/sound.cpp
+++ b/simon/sound.cpp
@@ -118,7 +118,7 @@ void SimonSound::readSfxFile(const char *filename, const char *gameDataPath) {
if (file->isOpen() == false) {
char *filename2;
- filename2 = (char *)malloc(strlen(filename) + 1);
+ filename2 = (char *)malloc(strlen(filename) + 2);
strcpy(filename2, filename);
strcat(filename2, ".");
file->open(filename2, gameDataPath);