diff options
author | Torbjörn Andersson | 2007-06-08 19:29:48 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-06-08 19:29:48 +0000 |
commit | 059ba7326ca0d96203d7eefcffdd65daef655eec (patch) | |
tree | e9325c089b7de493194ed827529ec1ba20a7ced0 /engines/cine/part.cpp | |
parent | a3e8f765a6be500357b99d693b21266dbc428137 (diff) | |
download | scummvm-rg350-059ba7326ca0d96203d7eefcffdd65daef655eec.tar.gz scummvm-rg350-059ba7326ca0d96203d7eefcffdd65daef655eec.tar.bz2 scummvm-rg350-059ba7326ca0d96203d7eefcffdd65daef655eec.zip |
Fixed some Valgrind warnings (overlapping source and destination in strcpy()).
svn-id: r27207
Diffstat (limited to 'engines/cine/part.cpp')
-rw-r--r-- | engines/cine/part.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cine/part.cpp b/engines/cine/part.cpp index c27240169e..b862d72b53 100644 --- a/engines/cine/part.cpp +++ b/engines/cine/part.cpp @@ -52,7 +52,8 @@ void loadPart(const char *partName) { numElementInPart = g_cine->_partFileHandle.readUint16BE(); g_cine->_partFileHandle.readUint16BE(); // entry size - strcpy(currentPartName, partName); + if (currentPartName != partName) + strcpy(currentPartName, partName); for (i = 0; i < numElementInPart; i++) { g_cine->_partFileHandle.read(partBuffer[i].partName, 14); |