From: Ben Harris Date: Mon, 16 Dec 2024 22:22:01 +0000 (+0000) Subject: Fix the length of an accidentally variable-length array X-Git-Tag: bedstead-3.251~67 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=f68916e9ef1a63630aa08c5697bd760dff843001;p=bedstead.git Fix the length of an accidentally variable-length array --- diff --git a/bedstead.c b/bedstead.c index cc4fb64..a92004e 100644 --- a/bedstead.c +++ b/bedstead.c @@ -4485,7 +4485,7 @@ glyph_complement() int i, col = -1, row = 0; int npages = 0; bool newcol = false; - struct glyph const *sorted[nglyphs], *g; + struct glyph const *sorted[NGLYPHS], *g; for (i = 0; i < nglyphs; i++) glyphs_by_name[i] = glyphs + i;