diff options
author | Brian Paul <[email protected]> | 2005-06-26 19:53:52 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-06-26 19:53:52 +0000 |
commit | 394fd40a536faade5ccfbbb1f2920394e89ad4aa (patch) | |
tree | 27542a4186955114ae08d5d7bdbf8faa26796bf3 /src | |
parent | 4e1aae6e0ed9a0b49b50ff420822463442392e5d (diff) |
need parenthesis in realloc call
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |