From feb8eaab8a8f7dc057aeb4013df6b3d411812f16 Mon Sep 17 00:00:00 2001 From: Joaquim Luis Date: Fri, 15 Nov 2019 20:01:08 +0000 Subject: [PATCH] The size to hold the pscoast -E string was too short --- src/gmt_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmt_init.c b/src/gmt_init.c index 1e5184693fb..dfe29811692 100644 --- a/src/gmt_init.c +++ b/src/gmt_init.c @@ -12643,7 +12643,7 @@ struct GMT_CTRL *gmt_init_module (struct GMTAPI_CTRL *API, const char *lib_name, if (options && gmt_M_compat_check (GMT, 5) && !strncmp (mod_name, "pscoast", 7U) && (E = GMT_Find_Option (API, 'E', *options)) && (opt = GMT_Find_Option (API, 'R', *options)) == NULL) { /* Running pscoast -E without -R: Must make sure any the region-information in -E is added as args to new -R. * If there are no +r|R in the -E then we consult the history to see if there is an -R in effect. */ - char r_code[GMT_LEN256] = {""}; + char r_code[GMT_LEN512] = {""}; bool add_R = true; unsigned int E_flags; E_flags = strip_R_from_E_in_pscoast (GMT, *options, r_code);