Skip to content

Commit

Permalink
These must be a bug that had not been found yet. (#8477)
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed May 6, 2024
1 parent 0eb4197 commit 8704253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gmt_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,13 +1257,13 @@ GMT_LOCAL int gmtinit_parse_h_option (struct GMT_CTRL *GMT, char *item) {
}
if (item[0] == 'i') {/* Apply to input only */
col = GMT_IN;
strncpy (GMT->common.g.string, item, GMT_LEN64-1); /* Verbatim copy */
strncpy (GMT->common.h.string, item, GMT_LEN256-1); /* Verbatim copy */
}
else if (item[0] == 'o') /* Apply to output only */
col = GMT_OUT;
else { /* Apply to both input and output columns */
k = 0;
strncpy (GMT->common.g.string, item, GMT_LEN64-1); /* Verbatim copy */
strncpy (GMT->common.h.string, item, GMT_LEN256-1); /* Verbatim copy */
}
if ((c = strchr (item, '+'))) /* Found modifiers */
c[0] = '\0'; /* Truncate modifiers for now */
Expand Down

0 comments on commit 8704253

Please sign in to comment.