153083/2 Buffer not null terminated

This commit is contained in:
wise86Android
2016-09-25 15:21:30 +02:00
parent 07ec476b7d
commit 8e9c0235d3
2 changed files with 3 additions and 3 deletions

View File

@@ -1557,7 +1557,7 @@ void MDLImporter::InternReadFile_3DGS_MDL7( )
} else {
pcNode->mName.length = ::strlen(szBuffer);
}
::strncpy(pcNode->mName.data,szBuffer,MAXLEN);
::strncpy(pcNode->mName.data,szBuffer,MAXLEN-1);
++p;
}
}