chiark / gitweb /
Correct the size of the parameter to glyph_footprint()
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 16 Dec 2024 22:27:24 +0000 (22:27 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 16 Dec 2024 22:27:24 +0000 (22:27 +0000)
bedstead.c

index a92004eb13de8bb47d5032a3f9fcfa13ccd5123a..6a8b1083360398c0f127f57969c44682d33476ba 100644 (file)
@@ -3586,12 +3586,12 @@ dosinglesubs(char const *suffix)
 }
 
 static int
-glyph_footprint(char data[XSIZE-1])
+glyph_footprint(char data[YSIZE - 1])
 {
        int i;
        int footprint = 0;
 
-       for (i = 0; i < YSIZE-1; i++) footprint |= data[i];
+       for (i = 0; i < YSIZE - 1; i++) footprint |= data[i];
        return footprint;
 }