From: <sv...@ww...> - 2004-05-29 05:17:50
|
Author: wolverine Date: 2004-05-28 22:17:41 -0700 (Fri, 28 May 2004) New Revision: 965 Modified: trunk/CSP/SimData/Source/Quat.cpp Log: Changed Quat to check the buffer size to be 24 instead of sizeof(Quat) Modified: trunk/CSP/SimData/Source/Quat.cpp =================================================================== --- trunk/CSP/SimData/Source/Quat.cpp 2004-05-29 04:27:55 UTC (rev 964) +++ trunk/CSP/SimData/Source/Quat.cpp 2004-05-29 05:17:41 UTC (rev 965) @@ -354,7 +354,7 @@ int Quat::readBinary(const unsigned char * ptrBuf, int size) { - if (size != sizeof(Quat)) + if (size != 4*sizeof(double)) { printf("Trying to read a binary Quat with the wrong size\n"); return 0; @@ -368,7 +368,7 @@ int Quat::writeBinary(unsigned char * ptrBuf, int size) { - if (size != sizeof(Quat)) + if (size != 4*sizeof(double)) { printf("Trying to write a binary Quat with the wrong size\n"); return 0; |