diff options
Diffstat (limited to 'code/AssetLib/NFF')
-rw-r--r-- | code/AssetLib/NFF/NFFLoader.cpp | 6 | ||||
-rw-r--r-- | code/AssetLib/NFF/NFFLoader.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/code/AssetLib/NFF/NFFLoader.cpp b/code/AssetLib/NFF/NFFLoader.cpp index 481a4bc19..4aaaaa64f 100644 --- a/code/AssetLib/NFF/NFFLoader.cpp +++ b/code/AssetLib/NFF/NFFLoader.cpp @@ -3,7 +3,7 @@ Open Asset Import Library (assimp) --------------------------------------------------------------------------- -Copyright (c) 2006-2024, assimp team +Copyright (c) 2006-2025, assimp team All rights reserved. @@ -546,9 +546,9 @@ void NFFImporter::InternReadFile(const std::string &file, aiScene *pScene, IOSys // We need to add a new mesh to the list. We assign // an unique name to it to make sure the scene will // pass the validation step for the moment. - // TODO: fix naming of objects in the scenegraph later + // TODO: fix naming of objects in the scene-graph later if (objectName.length()) { - ::strcpy(mesh->name, objectName.c_str()); + ::strncpy(mesh->name, objectName.c_str(), objectName.size()); ASSIMP_itoa10(&mesh->name[objectName.length()], 30, subMeshIdx++); } diff --git a/code/AssetLib/NFF/NFFLoader.h b/code/AssetLib/NFF/NFFLoader.h index dfa6a882f..0018474ba 100644 --- a/code/AssetLib/NFF/NFFLoader.h +++ b/code/AssetLib/NFF/NFFLoader.h @@ -2,8 +2,7 @@ Open Asset Import Library (assimp) ---------------------------------------------------------------------- -Copyright (c) 2006-2024, assimp team - +Copyright (c) 2006-2025, assimp team All rights reserved. |