WINTERMUTE: Replace strcpy by strlcpy in BaseFileManager

This commit is contained in:
Einar Johan Trøan Sømåen 2013-04-17 15:35:09 +02:00
parent 4ab80160da
commit 8430c491f0

View File

@ -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++) {