chiark / gitweb /
Fix the length of an accidentally variable-length array
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 16 Dec 2024 22:22:01 +0000 (22:22 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 16 Dec 2024 22:22:01 +0000 (22:22 +0000)
bedstead.c

index cc4fb64d5689223cd51c0a854793478ad65844ac..a92004eb13de8bb47d5032a3f9fcfa13ccd5123a 100644 (file)
@@ -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;