Fix a server crash due to memsetting beyond allocated memory when running

GL applications.
This commit is contained in:
Alan Hourihane 2006-04-03 09:12:28 +00:00
parent f6ca2b3ea9
commit 2a6c11aa3b

View File

@ -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;
}