Memory corruption: fread would read into the wrong memory location.

Nicky 2015-04-18 00:30:20 +02:00
parent fc7e96317c
commit a4f1f73ff1
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
//-------------------------------------------------------------------------
char morphName[64+1];
morphName[sizeof(morphName)-1] = '\0'; // ensure nul-termination
while(fread(&morphName, sizeof(char), 64, fp) == 64)
while(fread(morphName, sizeof(char), 64, fp) == 64)
{
if (!strcmp(morphName, "End Morphs"))
{