]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Fix *** buffer overflow detected *** in TestMEDPARTITIONER on Ubuntu.
authoreap <eap@opencascade.com>
Tue, 10 Dec 2013 11:06:20 +0000 (11:06 +0000)
committereap <eap@opencascade.com>
Tue, 10 Dec 2013 11:06:20 +0000 (11:06 +0000)
 Get more space for printing a date

src/MEDPartitioner/MEDPARTITIONER_MeshCollectionMedXmlDriver.cxx

index 348f1be5699f9d0145e207f00422cbcdce4d8701..bf1ed9630e1443ce7d49d0777b9b63b1d5b876e4 100644 (file)
@@ -200,7 +200,7 @@ void MeshCollectionMedXmlDriver::write(const char* filename, ParaDomainSelector*
 
   //Description tag
   time_t present; 
-  char date[6];
+  char date[20];
 #ifndef WIN32
   time( &present);
   struct tm *time_asc = localtime(&present);