From: Brian Paul Date: Sun, 26 Jun 2005 19:53:52 +0000 (+0000) Subject: need parenthesis in realloc call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=394fd40a536faade5ccfbbb1f2920394e89ad4aa;p=mesa.git need parenthesis in realloc call --- 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++;