need parenthesis in realloc call
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 26 Jun 2005 19:53:52 +0000 (19:53 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 26 Jun 2005 19:53:52 +0000 (19:53 +0000)
src/mesa/drivers/x11/fakeglx.c

index 3784044bf9b30f0430e393e11cb658b62721a0f8..7569fb05c16e898687b8eb899512d5234c3b12fd 100644 (file)
@@ -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++;