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_0~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f19a1321d9d7525aead39d13ceead276a7dde16;p=modules%2Fmed.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);