From cd21d88e589692e8ef80ea87591e3929df8d2393 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 22 Nov 2024 19:34:08 +0800 Subject: [PATCH] Fix --- src/gmtlogo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gmtlogo.c b/src/gmtlogo.c index 9199caad003..b5723ba5298 100644 --- a/src/gmtlogo.c +++ b/src/gmtlogo.c @@ -451,12 +451,12 @@ EXTERN_MSC int GMT_gmtlogo (void *V_API, int mode, void *args) { gmt_letters[idx][1] = NAN; idx += 1; memcpy(gmt_letters + idx, gmt_letters_g, sizeof(gmt_letters_g)); - idx += sizeof(gmt_letters_g); + idx += GMT_N_LETTERS_G; gmt_letters[idx][0] = NAN; gmt_letters[idx][1] = NAN; idx += 1; memcpy(gmt_letters + idx, gmt_letters_m, sizeof(gmt_letters_m)); - idx += sizeof(gmt_letters_m); + idx += GMT_N_LETTERS_M; gmt_letters[idx][0] = NAN; gmt_letters[idx][1] = NAN; idx += 1;