diff options
author | Torbjörn Andersson | 2009-05-15 04:59:45 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2009-05-15 04:59:45 +0000 |
commit | 24604dfa2275a47d543c64f92892c7f16099b96e (patch) | |
tree | 758c8150218728efb264bb21679b2a60f44db56d /engines | |
parent | b7af9831da9d460509aafdac58b9ff6c927744f3 (diff) | |
download | scummvm-rg350-24604dfa2275a47d543c64f92892c7f16099b96e.tar.gz scummvm-rg350-24604dfa2275a47d543c64f92892c7f16099b96e.tar.bz2 scummvm-rg350-24604dfa2275a47d543c64f92892c7f16099b96e.zip |
Yet another strcpy() where source and destination may be the same...
svn-id: r40591
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/overlay.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cruise/overlay.cpp b/engines/cruise/overlay.cpp index 1bca03da1d..68f6545d77 100644 --- a/engines/cruise/overlay.cpp +++ b/engines/cruise/overlay.cpp @@ -81,7 +81,8 @@ int loadOverlay(const char *scriptName) { if (!overlayTable[scriptIdx].ovlData) return (-2); - strcpy(overlayTable[scriptIdx].overlayName, scriptName); + if (scriptName != overlayTable[scriptIdx].overlayName) + strcpy(overlayTable[scriptIdx].overlayName, scriptName); overlayTable[scriptIdx].alreadyLoaded = 1; |