summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2020-04-28 22:05:02 +0200
committerPovilas Kanapickas <povilas@radix.lt>2021-04-24 19:42:52 +0000
commita50a0e348542bf32fb4239ee05a485772837f2f3 (patch)
tree84652adc2492b0bf1638042b86fb711b2ddd6570 /glx
parent3ea46f9336693d713ab63f422fffce42f9060a2c (diff)
glxcmds: Fix possible out of bounds
Diffstat (limited to 'glx')
-rw-r--r--glx/glxcmds.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/glx/glxcmds.c b/glx/glxcmds.c
index 37576b6ef..8bf180378 100644
--- a/glx/glxcmds.c
+++ b/glx/glxcmds.c
@@ -985,7 +985,6 @@ __glXDisp_GetVisualConfigs(__GLXclientState * cl, GLbyte * pc)
/* Pad with zeroes, so that attributes count is constant. */
while (p < GLX_VIS_CONFIG_TOTAL) {
buf[p++] = 0;
- buf[p++] = 0;
}
assert(p == GLX_VIS_CONFIG_TOTAL);