From 394fd40a536faade5ccfbbb1f2920394e89ad4aa Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 26 Jun 2005 19:53:52 +0000 Subject: need parenthesis in realloc call --- src/mesa/drivers/x11/fakeglx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/x11') diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 3784044bf9..7569fb05c1 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -344,7 +344,7 @@ save_glx_visual( Display *dpy, XVisualInfo *vinfo, /* Allocate more space for additional visual */ VisualTable = _mesa_realloc( VisualTable, sizeof(XMesaVisual) * NumVisuals, - sizeof(XMesaVisual) * NumVisuals + 1); + sizeof(XMesaVisual) * (NumVisuals + 1)); /* add xmvis to the list */ VisualTable[NumVisuals] = xmvis; NumVisuals++; -- cgit v1.2.3