summaryrefslogtreecommitdiff
path: root/xserver/Xext/saver.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2011-12-18 16:09:01 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2011-12-18 16:09:01 +0000
commite0d1211591b1caeff41a5ba6567a052c2c634912 (patch)
tree89ddd2fb66727360ab2df03e397054d15501053e /xserver/Xext/saver.c
parent47d9c1404905a4c2796c7fbd12a329751e2e3e97 (diff)
Bugfix Update to xserver 1.11.3
Diffstat (limited to 'xserver/Xext/saver.c')
-rw-r--r--xserver/Xext/saver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xserver/Xext/saver.c b/xserver/Xext/saver.c
index 18886038a..0f9e87870 100644
--- a/xserver/Xext/saver.c
+++ b/xserver/Xext/saver.c
@@ -927,7 +927,7 @@ ScreenSaverSetAttributes (ClientPtr client)
goto bail;
}
/* over allocate for override redirect */
- values = malloc((len + 1) * sizeof (unsigned long));
+ pAttr->values = values = malloc((len + 1) * sizeof (unsigned long));
if (!values)
{
ret = BadAlloc;
@@ -947,7 +947,6 @@ ScreenSaverSetAttributes (ClientPtr client)
pAttr->pCursor = NullCursor;
pAttr->pBackgroundPixmap = NullPixmap;
pAttr->pBorderPixmap = NullPixmap;
- pAttr->values = values;
/*
* go through the mask, checking the values,
* looking up pixmaps and cursors and hold a reference