From: eap Date: Tue, 10 Dec 2013 11:06:20 +0000 (+0000) Subject: Fix *** buffer overflow detected *** in TestMEDPARTITIONER on Ubuntu. X-Git-Tag: V7_3_1b1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db121b8b6e637a99d6e64be57b2216c728d014e2;p=tools%2Fmedcoupling.git Fix *** buffer overflow detected *** in TestMEDPARTITIONER on Ubuntu. Get more space for printing a date --- diff --git a/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionMedXmlDriver.cxx b/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionMedXmlDriver.cxx index 348f1be56..bf1ed9630 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionMedXmlDriver.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionMedXmlDriver.cxx @@ -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);