Compatibility windows

This commit is contained in:
adam 2009-02-26 14:57:12 +00:00
parent c812e7b365
commit 4240f05b23

View File

@ -1471,10 +1471,12 @@ char* GEOM_Gen_i::getObjectInfo(CORBA::Long studyId, const char* entry)
}
}
char anInfo [strlen("Module ") + strlen(ComponentDataType()) + strlen(", ") + strlen(aTypeInfo)];
char* anInfo = new char[strlen("Module ") + strlen(ComponentDataType()) + strlen(", ") + strlen(aTypeInfo) + 3];
sprintf(anInfo, "Module %s, %s", ComponentDataType(), aTypeInfo);
return CORBA::string_dup(anInfo);
char* ret = CORBA::string_dup(anInfo);
delete [] anInfo;
return ret;
}
//=====================================================================================