mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-26 10:10:48 +02: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.
(cherry picked from commit 0626eb8e5c)
This commit is contained in:
parent
24abce8032
commit
6245e9dd47
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