From: J.C. Jones Date: Sat, 20 Sep 2003 16:18:01 +0000 (+0000) Subject: Resolution for bug 809561 reported by Nigel Stewart, regarding a possible array under... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=238b81d2b9eab3675c30066c2f57f2c4ef1c2035;p=freeglut 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: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@194 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_font.c b/src/freeglut_font.c index c1e1db6..596a491 100644 --- a/src/freeglut_font.c +++ b/src/freeglut_font.c @@ -121,7 +121,7 @@ void FGAPIENTRY glutBitmapCharacter( void* fontID, int character ) /* * 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