From 2cb3a94ea7b615ebb73626ab0c40b38eb3f70af4 Mon Sep 17 00:00:00 2001 From: ikits Date: Mon, 27 Oct 2008 01:00:33 +0000 Subject: [PATCH] Bug fix (1966659) git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@534 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/src/glew_head.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/src/glew_head.c b/auto/src/glew_head.c index c24fa57..f233a2e 100644 --- a/auto/src/glew_head.c +++ b/auto/src/glew_head.c @@ -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)