Skip to content

Commit

Permalink
Merge pull request #356 from scottaiton/fix_restart
Browse files Browse the repository at this point in the history
fclaw_restart: account for null character in ini string
  • Loading branch information
scottaiton authored Jul 23, 2024
2 parents 6803099 + bf3f22b commit 66af570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fclaw_restart.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ checkpoint_output_frame (fclaw_global_t * glob, int iframe)
free_used_ini);
}

size_t used_ini_length = strlen(used_ini);
size_t used_ini_length = strlen(used_ini)+1;
sc_array_init_data(&array, &used_ini_length, sizeof(size_t), 1);

fc = fclaw_file_write_block(fc, "used_ini_length", sizeof(size_t), &array, &errcode);
Expand Down

0 comments on commit 66af570

Please sign in to comment.