diff options
author | Einar Johan Trøan Sømåen | 2013-04-17 15:35:09 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-17 15:35:09 +0200 |
commit | 8430c491f0dcb8693262d49add71466a45fe37cf (patch) | |
tree | ef54036aa93c5e34a550f7c139dbbe96296bf42e /engines/wintermute | |
parent | 4ab80160da661a9dd5aca068c813014133b62920 (diff) | |
download | scummvm-rg350-8430c491f0dcb8693262d49add71466a45fe37cf.tar.gz scummvm-rg350-8430c491f0dcb8693262d49add71466a45fe37cf.tar.bz2 scummvm-rg350-8430c491f0dcb8693262d49add71466a45fe37cf.zip |
WINTERMUTE: Replace strcpy by strlcpy in BaseFileManager
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/base/base_file_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/base_file_manager.cpp b/engines/wintermute/base/base_file_manager.cpp index 28e0b3af6e..cc018063f6 100644 --- a/engines/wintermute/base/base_file_manager.cpp +++ b/engines/wintermute/base/base_file_manager.cpp @@ -249,7 +249,7 @@ Common::SeekableReadStream *BaseFileManager::openPkgFile(const Common::String &f upcName.toUppercase(); Common::SeekableReadStream *file = nullptr; char fileName[MAX_PATH_LENGTH]; - strcpy(fileName, upcName.c_str()); + Common::strlcpy(fileName, upcName.c_str(), MAX_PATH_LENGTH); // correct slashes for (uint32 i = 0; i < upcName.size(); i++) { |