From 394fd40a536faade5ccfbbb1f2920394e89ad4aa Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 26 Jun 2005 19:53:52 +0000 Subject: [PATCH] need parenthesis in realloc call --- src/mesa/drivers/x11/fakeglx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 3784044bf9b..7569fb05c16 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++; -- 2.30.2