From d3b2458f241719c0a8d067f6308ee372d17502b0 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 17 Sep 1991 10:39:20 +0000 Subject: [PATCH] Fixed array bound error. Amazing that it worked on a SUN-3 --- util/ncgg/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/ncgg/output.c b/util/ncgg/output.c index d51de88f6..d98a710a9 100644 --- a/util/ncgg/output.c +++ b/util/ncgg/output.c @@ -402,7 +402,8 @@ outtokens() { for(i=0;itk_att[i].ta_type)); fprintf(ctable,"},%d},\t/* ",tp->tk_format); - outfmt(l_strings[tp->tk_format]); + if (tp->tk_format >= 0) outfmt(l_strings[tp->tk_format]); + else fprintf(ctable, "(no format)"); fprintf(ctable," */\n"); } fprintf(ctable,"{0}};\n\n"); -- 2.34.1