aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2009-10-01 12:12:07 +0000
committerPaul Gilbert2009-10-01 12:12:07 +0000
commitaba45bfd5fe0d77345166275f63d2bedb87a220f (patch)
treef30255491a56710e652d6bd0e0928fa62dfb1c30 /engines
parent04493d139e53d7f86441ff79997340b6583f0117 (diff)
downloadscummvm-rg350-aba45bfd5fe0d77345166275f63d2bedb87a220f.tar.gz
scummvm-rg350-aba45bfd5fe0d77345166275f63d2bedb87a220f.tar.bz2
scummvm-rg350-aba45bfd5fe0d77345166275f63d2bedb87a220f.zip
Reworked of code line in changeExtension that was giving a cppcheck warning
svn-id: r44517
Diffstat (limited to 'engines')
-rw-r--r--engines/m4/resource.cpp4
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);
}