Skip to content

Commit

Permalink
Add missing string termination.
Browse files Browse the repository at this point in the history
  • Loading branch information
mittinatten committed Dec 10, 2023
1 parent 2b60e2c commit ea6f883
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/structure.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ structure_add_chain(freesasa_structure *s,
n = s->chains.n;
strncpy(s->chains.labels[n - 1], chain_label, sizeof(chain_label_t));
s->chains.short_labels[n - 1] = chain_label[0];
s->chains.short_labels[n] = '\0';

s->chains.first_atom[n - 1] = i_latest_atom;
}
Expand Down

0 comments on commit ea6f883

Please sign in to comment.