|
@@ -660,7 +660,7 @@ void SMDImporter::CreateOutputMaterials()
|
|
|
|
|
|
if (aszTextures[iMat].length())
|
|
if (aszTextures[iMat].length())
|
|
{
|
|
{
|
|
- ::strcpy(szName.data, aszTextures[iMat].c_str() );
|
|
|
|
|
|
+ ::strncpy(szName.data, aszTextures[iMat].c_str(),MAXLEN );
|
|
szName.length = aszTextures[iMat].length();
|
|
szName.length = aszTextures[iMat].length();
|
|
pcMat->AddProperty(&szName,AI_MATKEY_TEXTURE_DIFFUSE(0));
|
|
pcMat->AddProperty(&szName,AI_MATKEY_TEXTURE_DIFFUSE(0));
|
|
}
|
|
}
|