mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-30 02:30:33 +05:00
Compatibility windows
This commit is contained in:
parent
c812e7b365
commit
4240f05b23
@ -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;
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user