diff options
Diffstat (limited to 'xfixes/region.c')
-rw-r--r-- | xfixes/region.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xfixes/region.c b/xfixes/region.c index 89675e52d..0e9ca443f 100644 --- a/xfixes/region.c +++ b/xfixes/region.c @@ -557,7 +557,8 @@ ProcXFixesFetchRegion(ClientPtr client) pBox = RegionRects(pRegion); nBox = RegionNumRects(pRegion); - reply = malloc(sizeof(xXFixesFetchRegionReply) + nBox * sizeof(xRectangle)); + reply = calloc(sizeof(xXFixesFetchRegionReply) + nBox * sizeof(xRectangle), + 1); if (!reply) return BadAlloc; reply->type = X_Reply; |