From 763790d8bbc7d9516c3034edde48ce0b62227e80 Mon Sep 17 00:00:00 2001 From: sandalle Date: Tue, 1 Jul 2003 21:35:43 +0000 Subject: [PATCH] Fixed the 'ptr + len' problem in freeglut_misc.c:90 git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@116 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/ChangeLog | 7 +++++++ freeglut/freeglut/src/freeglut_misc.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/freeglut/freeglut/ChangeLog b/freeglut/freeglut/ChangeLog index 44f3fc2..642e178 100644 --- a/freeglut/freeglut/ChangeLog +++ b/freeglut/freeglut/ChangeLog @@ -191,3 +191,10 @@ October 24, 2002: ******************************************************************************************* (83) Now installs freeglut_ext.h and glut.h to /usr/include/GL (was missing before) + + +******************************************************************************************* +* Changes on 01 July 2003 +******************************************************************************************* + +(84) Fixed the 'ptr + len' problem in freeglut_misc.c:90 diff --git a/freeglut/freeglut/src/freeglut_misc.c b/freeglut/freeglut/src/freeglut_misc.c index 496ca45..8c376eb 100644 --- a/freeglut/freeglut/src/freeglut_misc.c +++ b/freeglut/freeglut/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. */ - 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.