From b201f2f88f12f509f5d1a0427ffa248d8c1105ba Mon Sep 17 00:00:00 2001 From: AlysonStahl-NOAA <166434581+AlysonStahl-NOAA@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:01:58 -0800 Subject: [PATCH] fix 4.73 extension --- src/pdstemplates.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pdstemplates.c b/src/pdstemplates.c index dcf9022c..33625765 100644 --- a/src/pdstemplates.c +++ b/src/pdstemplates.c @@ -954,16 +954,16 @@ extpdstemplate(g2int number, g2int *list) /* PDT 4.73 (12/04/2024) */ else if (number == 73) { - if (list[29] > 1) + if (list[27] > 1) { - new->extlen = (list[29] - 1) * 6; + new->extlen = (list[27] - 1) * 6; new->ext = malloc(sizeof(g2int) * new->extlen); - for (j = 2; j <= list[29]; j++) + for (j = 2; j <= list[27]; j++) { l = (j - 2) * 6; for (k = 0; k < 6; k++) { - new->ext[l + k] = new->map[31 + k]; + new->ext[l + k] = new->map[29 + k]; } } }