From 6245e9dd4719c5dc15ff45d49cf626123794038b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 21 Nov 2006 16:52:28 -0800 Subject: [PATCH] Allocate correct size for RRPropertyRec (oops). Neglected to change the allocation size from sizeof (PropertyRec) to sizeof (RRPropertyRec). Lots of fun crashes this way. (cherry picked from commit 0626eb8e5c9fa05de6bdc9aa0c654f5148bf7cff) --- randr/rrproperty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/randr/rrproperty.c b/randr/rrproperty.c index 5d4c86565..a47f30671 100644 --- a/randr/rrproperty.c +++ b/randr/rrproperty.c @@ -68,9 +68,10 @@ RRCreateOutputProperty (Atom property) { RRPropertyPtr prop; - prop = (RRPropertyPtr)xalloc(sizeof(PropertyRec)); + prop = (RRPropertyPtr)xalloc(sizeof(RRPropertyRec)); if (!prop) return NULL; + prop->next = NULL; prop->propertyName = property; prop->is_pending = FALSE; prop->range = FALSE;