diff options
Diffstat (limited to 'src/Glyph.c')
-rw-r--r-- | src/Glyph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Glyph.c b/src/Glyph.c index dbeb77e..48e40c3 100644 --- a/src/Glyph.c +++ b/src/Glyph.c @@ -665,7 +665,7 @@ XRenderCompositeText32 (Display *dpy, len += (SIZEOF (xGlyphElt) + 4) >> 2; } nchars = elts[i].nchars; - elen = SIZEOF(xGlyphElt) * ((nchars + MAX_32) / MAX_32) + nchars *4; + elen = SIZEOF(xGlyphElt) * ((nchars + MAX_32-1) / MAX_32) + nchars *4; len += (elen + 3) >> 2; } |