diff options
author | Paul Gilbert | 2009-10-01 12:12:07 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-10-01 12:12:07 +0000 |
commit | aba45bfd5fe0d77345166275f63d2bedb87a220f (patch) | |
tree | f30255491a56710e652d6bd0e0928fa62dfb1c30 /engines | |
parent | 04493d139e53d7f86441ff79997340b6583f0117 (diff) | |
download | scummvm-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.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); } |