[cgma-dev] r5043 - cgm/trunk/util
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Fri Jul 1 14:55:21 CDT 2011
Author: iulian
Date: 2011-07-01 14:55:21 -0500 (Fri, 01 Jul 2011)
New Revision: 5043
Modified:
cgm/trunk/util/CubitFile.hpp
Log:
avoid the crash on 32 bit by padding some extra bytes in the CCubitFile
class; it should help on 64 bit too.
This header file should be replaced with 12.2 version, when available
Modified: cgm/trunk/util/CubitFile.hpp
===================================================================
--- cgm/trunk/util/CubitFile.hpp 2011-06-30 22:31:50 UTC (rev 5042)
+++ cgm/trunk/util/CubitFile.hpp 2011-07-01 19:55:21 UTC (rev 5043)
@@ -291,6 +291,10 @@
UnsignedInt32 mintNumModels;
SModelData* mpaModelData;
} mModelBuff;
+ char buff[16];// used to pad for the difference between sizeof(CCubitFile)
+ // and actual size of object from cubit library
+ // it seems that we have headers from 12.0, and library
+ // is 12.2
};
} // namespace NCubitFile
More information about the cgma-dev
mailing list