diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_glyphs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c index cd29b07e..f8959e16 100644 --- a/src/sna/sna_glyphs.c +++ b/src/sna/sna_glyphs.c @@ -1049,8 +1049,8 @@ glyphs_format(int nlist, GlyphListPtr list, GlyphPtr * glyphs) BoxRec stack_extents[64], *list_extents = stack_extents; int i, j; - if (nlist > ARRAY_SIZE(stack_extents) + 1) { - list_extents = malloc(sizeof(BoxRec) * (nlist-1)); + if (nlist > ARRAY_SIZE(stack_extents)) { + list_extents = malloc(sizeof(BoxRec) * nlist); if (list_extents == NULL) return NULL; } |