Draft: Update init of aiString (#5623)
* Draft: Update init of aiString - closes https://github.com/assimp/assimp/issues/5622 * Update types.h * Fix typo * Fix another typo * Adapt usage of AI_MAXLEN * Fix compare operator * Add missing renames
This commit is contained in:
@@ -486,7 +486,7 @@ aiReturn aiMaterial::AddBinaryProperty(const void *pInput,
|
||||
memcpy(pcNew->mData, pInput, pSizeInBytes);
|
||||
|
||||
pcNew->mKey.length = static_cast<ai_uint32>(::strlen(pKey));
|
||||
ai_assert(MAXLEN > pcNew->mKey.length);
|
||||
ai_assert(AI_MAXLEN > pcNew->mKey.length);
|
||||
strcpy(pcNew->mKey.data, pKey);
|
||||
|
||||
if (UINT_MAX != iOutIndex) {
|
||||
|
||||
Reference in New Issue
Block a user