From 9617f35263d51ef33dc03de7eb7f2453f00b9a79 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Thu, 7 Jan 2016 23:02:32 +1000 Subject: [PATCH] Fix regression in _glewExtensionCompare due to strcmp migration --- auto/src/glew_init_gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/src/glew_init_gl.c b/auto/src/glew_init_gl.c index 0c0653a..6fd86ce 100644 --- a/auto/src/glew_init_gl.c +++ b/auto/src/glew_init_gl.c @@ -4,7 +4,7 @@ static int _glewExtensionCompare(const void *a, const void *b) { /* http://www.chanduthedev.com/2012/07/strcmp-implementation-in-c.html */ const char *s1 = (const char *) a; - const char *s2 = (const char *) b; + const char *s2 = *(const char * const *) b; while (*s1 || *s2) { if (*s1 > *s2)