1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Refactor memcpy to std::memcpy and memset to std::memset (#8408)

This commit is contained in:
ζeh Matt
2018-12-15 22:23:31 +01:00
committed by Michał Janiszewski
parent 748da25f78
commit 7d19a5bc77
61 changed files with 245 additions and 251 deletions

View File

@@ -425,7 +425,7 @@ namespace ObjectFactory
entry.checksum = std::stoul(originalId.substr(18, 8), nullptr, 16);
}
auto minLength = std::min<size_t>(8, originalName.length());
memcpy(entry.name, originalName.c_str(), minLength);
std::memcpy(entry.name, originalName.c_str(), minLength);
result = CreateObject(entry);
auto readContext = ReadObjectContext(objectRepository, id, !gOpenRCT2NoGraphics, fileRetriever);