Skip to content

Commit

Permalink
Fix the off-1 bur in -M & -L options parsing. (#8631)
Browse files Browse the repository at this point in the history
Fixes #8630
  • Loading branch information
joa-quim authored Nov 22, 2024
1 parent de1b538 commit 373034f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/segy/segy2grd.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ static int parse (struct GMT_CTRL *GMT, struct SEGY2GRD_CTRL *Ctrl, struct GMT_O
break;
case 'L':
n_errors += gmt_M_repeated_module_option (API, Ctrl->L.active);
n_errors += gmt_get_required_int (GMT, &opt->arg[1], opt->option, 0, &Ctrl->L.value);
n_errors += gmt_get_required_int (GMT, opt->arg, opt->option, 0, &Ctrl->L.value);
break;
case 'M':
n_errors += gmt_M_repeated_module_option (API, Ctrl->M.active);
n_errors += gmt_get_required_uint (GMT, &opt->arg[1], opt->option, 0, &Ctrl->M.value);
n_errors += gmt_get_required_uint (GMT, opt->arg, opt->option, 0, &Ctrl->M.value);
break;
case 'N': /* Deprecated 7.29.2021 PW, use -di */
if (gmt_M_compat_check (GMT, 6)) { /* Honor old -N<value> option */
Expand Down

0 comments on commit 373034f

Please sign in to comment.