Skip to content

Commit

Permalink
Merge pull request #31 from sergarrido/fix_read_options
Browse files Browse the repository at this point in the history
Fix bug when reading options file in BundlerApp
  • Loading branch information
snavely authored May 13, 2019
2 parents 7e0b80d + 9ea8fe7 commit a35a8f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BundlerApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,8 @@ void BundlerApp::ProcessOptions(int argc, char **argv)
}

char *opt_str = new char[4096];
fread(opt_str, 1, 4096, f);
int nbytes = fread(opt_str, 1, 4095, f);
opt_str[nbytes] = '\0';
fclose(f);

std::string str(opt_str);
Expand Down

0 comments on commit a35a8f5

Please sign in to comment.