mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +00:00
xwin: glx: fix VLA issue
We don't wanna use VLAs, because they're inherently unsafe. Since the values[] array can never be bigger than attrs, just use attr's size here. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
bb458432fb
commit
e835d2a000
1 changed files with 1 additions and 1 deletions
|
|
@ -2108,7 +2108,7 @@ glxWinCreateConfigsExt(HDC hdc, glxWinScreen * screen, PixelFormatRejectStats *
|
|||
|
||||
/* fill in configs */
|
||||
for (i = 0; i < numConfigs; i++) {
|
||||
int values[num_attrs];
|
||||
int values[ARRAY_SIZE(attrs)];
|
||||
GLXWinConfig temp;
|
||||
GLXWinConfig *c = &temp;
|
||||
GLXWinConfig *work;
|
||||
|
|
|
|||
Loading…
Reference in a new issue