diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/m4/resource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/m4/resource.cpp b/engines/m4/resource.cpp index eb9a69998c..a7e092f9e2 100644 --- a/engines/m4/resource.cpp +++ b/engines/m4/resource.cpp @@ -152,7 +152,9 @@ void FileSystem::changeExtension(char *destName, const char *sourceName, const c char *dot = strrchr(destName, '.'); if (dot != NULL) *dot = 0; - sprintf(destName, "%s.%s", destName, extension); + + strcat(destName, "."); + strcat(destName, extension); str_upper(destName); } |