From aba45bfd5fe0d77345166275f63d2bedb87a220f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 1 Oct 2009 12:12:07 +0000 Subject: Reworked of code line in changeExtension that was giving a cppcheck warning svn-id: r44517 --- engines/m4/resource.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') 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); } -- cgit v1.2.3