Resolution for bug 809561 reported by Nigel Stewart, regarding a possible array underflow error of -1 in the event of "character" being zero.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@194 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
puggles 2003-09-20 16:18:01 +00:00
parent 5337925e88
commit 2a56a1a4b4

View File

@ -121,7 +121,7 @@ void FGAPIENTRY glutBitmapCharacter( void* fontID, int character )
/* /*
* Make sure the character we want to output is valid * Make sure the character we want to output is valid
*/ */
freeglut_return_if_fail( character >= 0 && character < 256 ); freeglut_return_if_fail( character >= 1 && character < 256 );
/* /*
* Then find the character we want to draw * Then find the character we want to draw