Remove strcpy. (#5802)
* Remove strcpy. * Sonarcube: Add more strcpy replacements * BlenderLoader: Replace strncpy by memcpy
This commit is contained in:
@@ -455,11 +455,10 @@ void SMDImporter::CreateOutputNodes() {
|
||||
delete pcOldRoot;
|
||||
|
||||
pScene->mRootNode->mParent = nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
::strcpy(pScene->mRootNode->mName.data, "<SMD_root>");
|
||||
} else {
|
||||
static constexpr char rootName[11] = "<SMD_root>";
|
||||
pScene->mRootNode->mName.length = 10;
|
||||
::strncpy(pScene->mRootNode->mName.data, rootName, pScene->mRootNode->mName.length);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user