122143,122139 Copy into fixed size buffer

This commit is contained in:
wise86Android
2016-09-24 21:34:58 +02:00
parent 08da6b278d
commit 07ec476b7d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1557,7 +1557,7 @@ void MDLImporter::InternReadFile_3DGS_MDL7( )
} else {
pcNode->mName.length = ::strlen(szBuffer);
}
::strcpy(pcNode->mName.data,szBuffer);
::strncpy(pcNode->mName.data,szBuffer,MAXLEN);
++p;
}
}