chiark
/
gitweb
/
~bjharris
/
bedstead.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9380d5
)
Fix the length of an accidentally variable-length array
author
Ben Harris
<bjh21@bjh21.me.uk>
Mon, 16 Dec 2024 22:22:01 +0000
(22:22 +0000)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Mon, 16 Dec 2024 22:22:01 +0000
(22:22 +0000)
bedstead.c
patch
|
blob
|
history
diff --git
a/bedstead.c
b/bedstead.c
index cc4fb64d5689223cd51c0a854793478ad65844ac..a92004eb13de8bb47d5032a3f9fcfa13ccd5123a 100644
(file)
--- 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;