Merge pull request #360 from CoolProp/asan_rpversion

RPversion call needs to take in a longer string than it should require
This commit is contained in:
Ian Bell
2014-12-18 16:39:55 -06:00
2 changed files with 3 additions and 3 deletions

View File

@@ -291,8 +291,8 @@ bool load_REFPROP()
throw CoolProp::AttributeError("There was an error setting the REFPROP function pointers, check types and names in header file.");
return false;
}
char rpv[255];
RPVersion(rpv);
char rpv[1000];
RPVersion(rpv, 1000);
RPVersion_loaded = rpv;
return true;
}

View File

@@ -144,7 +144,7 @@ extern "C" {
#endif
// For C calling conventions, replaced all "double &" with "double *", and "long &" with "long *"
typedef void (CALLCONV RPVersion_TYPE)( char* );
typedef void (CALLCONV RPVersion_TYPE)( char* , long);
typedef void (CALLCONV SETPATHdll_TYPE)( const char* );
typedef void (CALLCONV ABFL1dll_TYPE)(double *,double *,double *,long *,double *,double *,double *,double *,double *,double *,long *,char*,long );
typedef void (CALLCONV ABFL2dll_TYPE)(double *,double *,double *,long *,long *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,double *,long *,char*,long );