From e7cd5d84ed1fb3637dce6e9e6ef58c8611818c4e Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Oct 2008 16:09:17 +1000 Subject: [PATCH] fixup another calloc build issue --- hw/xfree86/common/xf86Configure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86Configure.c b/hw/xfree86/common/xf86Configure.c index d61f59ea8..85cd5b62e 100644 --- a/hw/xfree86/common/xf86Configure.c +++ b/hw/xfree86/common/xf86Configure.c @@ -538,7 +538,7 @@ configureModuleSection (void) for (el = elist; *el; el++) { XF86LoadPtr module; - module = xf86confcalloc(sizeof(XF86LoadRec)); + module = xf86confcalloc(1, sizeof(XF86LoadRec)); module->load_name = *el; /* Add only those font backends which are referenced by fontpath */