mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 07:40:11 +01:00
need parenthesis in realloc call
This commit is contained in:
parent
4e1aae6e0e
commit
394fd40a53
1 changed files with 1 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue