summaryrefslogtreecommitdiff
path: root/hw/dmx
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2006-04-03 09:12:28 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2006-04-03 09:12:28 +0000
commit2a6c11aa3b06f13dad94f3441c7184e6720a2bf4 (patch)
tree92ef4cafeea0bd19ce4a358553cc37a9ae3b7d8b /hw/dmx
parentf6ca2b3ea92b7fe98408c51a17a590435e808b1d (diff)
Fix a server crash due to memsetting beyond allocated memory when running
GL applications.
Diffstat (limited to 'hw/dmx')
-rw-r--r--hw/dmx/glxProxy/glxcmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dmx/glxProxy/glxcmds.c b/hw/dmx/glxProxy/glxcmds.c
index fe1d3571f..d7ea70728 100644
--- a/hw/dmx/glxProxy/glxcmds.c
+++ b/hw/dmx/glxProxy/glxcmds.c
@@ -611,7 +611,7 @@ static int AddCurrentContext(__GLXclientState *cl, __GLXcontext *glxc, DrawableP
cl->numCurrentContexts++;
__glXMemset(cl->be_currentCTag + num*screenInfo.numScreens, 0,
- screenInfo.numScreens * sizeof(Display *));
+ screenInfo.numScreens * sizeof(GLXContextTag));
return num+1;
}