mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 14:14:43 +00:00
WINTERMUTE: Replace strcpy by strlcpy in BaseFileManager
This commit is contained in:
parent
4ab80160da
commit
8430c491f0
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user