Skip to content

Commit

Permalink
Fix check on number of arguments
Browse files Browse the repository at this point in the history
Fixes #1300
  • Loading branch information
KrisThielemans committed Jan 21, 2025
1 parent 7639374 commit 5465550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Registration/cReg/sirf_inverse_transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int main(int argc, char* argv[])
print_usage_and_exit(program_name, EXIT_SUCCESS);

// Check for all compulsory arguments
if (argc<5)
if (argc<4)
print_usage_and_exit(program_name, EXIT_FAILURE);
// Output image
const std::string output_filename = argv[1];
Expand Down

0 comments on commit 5465550

Please sign in to comment.