mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fix call to strstrip
This commit is contained in:
@@ -205,7 +205,8 @@ std::string REFPROPMixtureBackend::version(){
|
||||
lengthofreference, // Length of reference
|
||||
errormessagelength // Length of error message
|
||||
);
|
||||
return strstrip(std::string(herr, herr+254));
|
||||
std::string s(herr, herr+254);
|
||||
return strstrip(s);
|
||||
}
|
||||
|
||||
void REFPROPMixtureBackend::set_REFPROP_fluids(const std::vector<std::string> &fluid_names)
|
||||
|
||||
@@ -861,6 +861,9 @@ std::string get_global_param_string(const std::string &ParamName)
|
||||
else if (!ParamName.compare("HOME")){
|
||||
return get_home_dir();
|
||||
}
|
||||
else if (ParamName == "REFPROP_version"){
|
||||
return REFPROPMixtureBackend::version();
|
||||
}
|
||||
else{
|
||||
throw ValueError(format("Input value [%s] is invalid",ParamName.c_str()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user