]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
[EDF14926] : when groups have names with len == 80 it s now OK.
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 28 Jun 2017 09:58:58 +0000 (11:58 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 28 Jun 2017 09:58:58 +0000 (11:58 +0200)
src/MEDLoader/MEDFileMeshLL.cxx

index 4d799a6137c7e779774d847686aab578ed19a861..499d7ccbb9a565f0c9171f5e2784939dfc6df161 100644 (file)
@@ -331,7 +331,7 @@ void MEDFileMeshL2::WriteFamiliesAndGrps(med_idt fid, const std::string& mname,
       INTERP_KERNEL::AutoPtr<char> groName=MEDLoaderBase::buildEmptyString(MED_LNAME_SIZE*ngro);
       int i=0;
       for(std::vector<std::string>::const_iterator it2=(*it).second.second.begin();it2!=(*it).second.second.end();it2++,i++)
-        MEDLoaderBase::safeStrCpy2((*it2).c_str(),MED_LNAME_SIZE-1,groName+i*MED_LNAME_SIZE,tooLongStrPol);
+        MEDLoaderBase::safeStrCpy2((*it2).c_str(),MED_LNAME_SIZE,groName+i*MED_LNAME_SIZE,tooLongStrPol);
       INTERP_KERNEL::AutoPtr<char> famName=MEDLoaderBase::buildEmptyString(MED_NAME_SIZE);
       MEDLoaderBase::safeStrCpy((*it).first.c_str(),MED_NAME_SIZE,famName,tooLongStrPol);
       int ret=MEDfamilyCr(fid,mname.c_str(),famName,(*it).second.first,ngro,groName);