Skip to content

Commit

Permalink
Fix: array index out of range (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
caic99 authored Mar 3, 2024
1 parent cb2939e commit 0f1e30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unidock/src/main/simulation_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct simulation_container {
} else {
std::ifstream ifs(path);
std::string line;
double vals[3];
double vals[6];
int id = 0;
while (std::getline(ifs, line)) {
std::string trimmed(trim_eol(line));
Expand Down

1 comment on commit 0f1e30e

@prabindh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

Please sign in to comment.