Skip to content

Commit

Permalink
WINTERMUTE: Replace strcpy by strlcpy in BaseFileManager
Browse files Browse the repository at this point in the history
  • Loading branch information
somaen committed Apr 17, 2013
1 parent 4ab8016 commit 8430c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/wintermute/base/base_file_manager.cpp
Expand Up @@ -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++) {
Expand Down

0 comments on commit 8430c49

Please sign in to comment.