Fix regression in _glewExtensionCompare due to strcmp migration

This commit is contained in:
Nigel Stewart 2016-01-07 23:02:32 +10:00
parent 18ef5d021b
commit 9617f35263

View File

@ -4,7 +4,7 @@ static int _glewExtensionCompare(const void *a, const void *b)
{ {
/* http://www.chanduthedev.com/2012/07/strcmp-implementation-in-c.html */ /* http://www.chanduthedev.com/2012/07/strcmp-implementation-in-c.html */
const char *s1 = (const char *) a; const char *s1 = (const char *) a;
const char *s2 = (const char *) b; const char *s2 = *(const char * const *) b;
while (*s1 || *s2) while (*s1 || *s2)
{ {
if (*s1 > *s2) if (*s1 > *s2)