diff --git a/miext/damage/damage.c b/miext/damage/damage.c index 0b626eba4..12e872579 100644 --- a/miext/damage/damage.c +++ b/miext/damage/damage.c @@ -1325,7 +1325,7 @@ damageText(DrawablePtr pDrawable, if (!checkGCDamage(pDrawable, pGC)) return; - charinfo = xallocarray(count, sizeof(CharInfoPtr)); + charinfo = calloc(count, sizeof(CharInfoPtr)); if (!charinfo) return;