summaryrefslogtreecommitdiffstats
path: root/src/glx/glxglvnd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/glxglvnd.c')
-rw-r--r--src/glx/glxglvnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/glxglvnd.c b/src/glx/glxglvnd.c
index 962eda8bb5b..098304d5574 100644
--- a/src/glx/glxglvnd.c
+++ b/src/glx/glxglvnd.c
@@ -24,8 +24,8 @@ static unsigned FindGLXFunction(const GLubyte *name)
while (first <= last) {
int middle = (first + last) / 2;
- int comp = strcmp((const char *) name,
- __glXDispatchTableStrings[middle]);
+ int comp = strcmp(__glXDispatchTableStrings[middle],
+ (const char *) name);
if (comp < 0)
first = middle + 1;