Btw, I'm curious why this happened?Very often the devil's in the ellipsis. It's hard to say what happened without knowing what "..." is.
memory allocation
pMesh->pName = (char*)malloc(sizeof (char) * 33);
fread(pMesh->pName,...);
pMesh->pName[32] = '\0';