mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fixed (?) bug with get_global_param_string always returning empty string
See https://github.com/CoolProp/CoolProp/issues/228 Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -184,7 +184,7 @@ EXPORT_CODE long CONVENTION get_param_index(const char * param){
|
||||
}
|
||||
EXPORT_CODE long CONVENTION get_global_param_string(const char *param, char * Output)
|
||||
{
|
||||
std::string s = CoolProp::get_global_param_string(param).c_str();
|
||||
std::string s = CoolProp::get_global_param_string(param);
|
||||
if (s.size() < strlen(Output)){
|
||||
strcpy(Output, s.c_str());
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user