diff options
Diffstat (limited to 'xserver/miext/damage/damage.c')
-rw-r--r-- | xserver/miext/damage/damage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xserver/miext/damage/damage.c b/xserver/miext/damage/damage.c index 6ef7f9dfc..746e7984f 100644 --- a/xserver/miext/damage/damage.c +++ b/xserver/miext/damage/damage.c @@ -32,6 +32,7 @@ #include <X11/fonts/font.h> #include "dixfontstr.h" #include <X11/fonts/fontstruct.h> +#include <X11/fonts/fontutil.h> #include "mi.h" #include "regionstr.h" #include "globals.h" @@ -1293,7 +1294,7 @@ damageText(DrawablePtr pDrawable, if (!checkGCDamage(pDrawable, pGC)) return; - charinfo = malloc(count * sizeof(CharInfoPtr)); + charinfo = xallocarray(count, sizeof(CharInfoPtr)); if (!charinfo) return; |