commit 07c4668f6e8d6d7799f23f6ff6c6b0e338534913 Author: Daniel Vetter Date: Thu Apr 8 21:48:13 2010 +0200 XvMC: fix memory overflow Caught by a malloc library assert. Note to self: Don't just copy&paste codelines around. Signed-off-by: Daniel Vetter diff --git a/src/i830_hwmc.c b/src/i830_hwmc.c index c75e420..850bf87 100644 --- a/src/i830_hwmc.c +++ b/src/i830_hwmc.c @@ -207,7 +207,7 @@ Bool intel_xvmc_adaptor_init(ScreenPtr pScreen) return FALSE; } - pAdapt = xcalloc(1, sizeof(struct intel_xvmc_hw_context)); + pAdapt = xcalloc(1, sizeof(XF86MCAdaptorRec)); if (!pAdapt) { ErrorF("Allocation error.\n"); return FALSE;