projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed the 'ptr + len' problem in freeglut_misc.c:90
[freeglut]
/
src
/
freeglut_misc.c
diff --git
a/src/freeglut_misc.c
b/src/freeglut_misc.c
index
496ca45
..
8c376eb
100644
(file)
--- a/
src/freeglut_misc.c
+++ b/
src/freeglut_misc.c
@@
-87,7
+87,7
@@
int FGAPIENTRY glutExtensionSupported( const char* extension )
/*
* No, go find the next extension. They are separated from each other by one or more blank spaces.
*/
/*
* No, go find the next extension. They are separated from each other by one or more blank spaces.
*/
- ptr = strchr ( ptr + len, ' ' ) ;
+ ptr = strchr ( ptr, ' ' ) ;
/*
* If we ran off the end of the "extensions" character string, we didn't find it. Return failure.
/*
* If we ran off the end of the "extensions" character string, we didn't find it. Return failure.