diff --git a/miext/damage/damage.c b/miext/damage/damage.c index 499055f11..56f24d756 100644 --- a/miext/damage/damage.c +++ b/miext/damage/damage.c @@ -1318,7 +1318,7 @@ damageText(DrawablePtr pDrawable, if (!checkGCDamage(pDrawable, pGC)) return; - charinfo = xallocarray(count, sizeof(CharInfoPtr)); + charinfo = calloc(count, sizeof(CharInfoPtr)); if (!charinfo) return;