Bug fix (1966659)

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@534 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2008-10-27 01:00:33 +00:00
parent 236a07b9fb
commit 2cb3a94ea7
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ static GLuint _glewStrCLen (const GLubyte* s, GLubyte c)
GLuint i=0;
if (s == NULL) return 0;
while (s[i] != '\0' && s[i] != c) i++;
return s[i] == c ? i : 0;
return (s[i] == '\0' || s[i] == c) ? i : 0;
}
static GLboolean _glewStrSame (const GLubyte* a, const GLubyte* b, GLuint n)