Skip to content

Commit

Permalink
Merge pull request #66 from BOINC/vko_fix_file_resolve
Browse files Browse the repository at this point in the history
[boinc-autodock-vina] Fix filename resolve
  • Loading branch information
AenBleidd authored Dec 18, 2022
2 parents 246a33b + b1a6f8b commit 1d982c8
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,16 @@ int main(int argc, char** argv) {
return 1;
}

const std::string in_zip(argv[1]);
const std::string out_zip(argv[2]);
std::string in_zip;
if (boinc_resolve_filename_s(argv[1], in_zip)) {
std::cerr << "Failed to resolve input ZIP file name" << std::endl;
return 1;
}
std::string out_zip;
if (boinc_resolve_filename_s(argv[2], out_zip)) {
std::cerr << "Failed to resolve output ZIP file name" << std::endl;
return 1;
}

return perform_docking(in_zip, out_zip);
}
Expand Down

0 comments on commit 1d982c8

Please sign in to comment.