mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
libecl: Fix for more data in summary restart path
Allocate 17 words of 8 characters each, add 1 for zero terminated string.
This commit is contained in:
parent
f44eb6324e
commit
b1b0fd9d35
7
ThirdParty/Ert/lib/ecl/ecl_smspec.cpp
vendored
7
ThirdParty/Ert/lib/ecl/ecl_smspec.cpp
vendored
@ -868,7 +868,12 @@ bool ecl_smspec_equal(const ecl_smspec_type * self,
|
||||
static void ecl_smspec_load_restart( ecl_smspec_type * ecl_smspec , const ecl_file_type * header ) {
|
||||
if (ecl_file_has_kw( header , RESTART_KW )) {
|
||||
const ecl_kw_type * restart_kw = ecl_file_iget_named_kw(header, RESTART_KW , 0);
|
||||
char tmp_base[73]; /* To accomodate a maximum of 9 items which consist of 8 characters each. */
|
||||
|
||||
/* Allocate 17 words of 8 characters each, add 1 for zero terminated string.
|
||||
* https://github.com/equinor/ecl/issues/872
|
||||
*/
|
||||
char tmp_base[137];
|
||||
|
||||
char * restart_base;
|
||||
int i;
|
||||
tmp_base[0] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user