glxcmds: Fix possible out of bounds

This commit is contained in:
qarmin 2020-04-28 22:05:02 +02:00 committed by Povilas Kanapickas
parent 3ea46f9336
commit a50a0e3485
1 changed files with 0 additions and 1 deletions

View File

@ -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);