mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-04 12:10:12 +01:00
Allocate correct size for RRPropertyRec (oops).
Neglected to change the allocation size from sizeof (PropertyRec) to sizeof (RRPropertyRec). Lots of fun crashes this way.
This commit is contained in:
parent
af55c65bea
commit
0626eb8e5c
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue