diff options
author | Brian Nixon <bnixon@yahoo.com> | 2013-05-13 09:06:42 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2013-05-13 09:06:42 +0200 |
commit | 8d6025c8da3704fe4a68860f753ce33b67014a84 (patch) | |
tree | 6e460967af32092e23f92e2499d5db2686e8ccc6 /builds/amiga | |
parent | cd888753c8f9eb9e2142692fd35f03d8114c3067 (diff) | |
download | freetype2-8d6025c8da3704fe4a68860f753ce33b67014a84.tar.gz |
Fix Savannah bug #38970.
* src/base/ftdebug.c, builds/win32/ftdebug.c,
builds/wince/ftdebug.c, builds/amiga/src/base/ftdebug.c
(ft_debug_init): Don't read past the environment variable FT2_DEBUG.
Diffstat (limited to 'builds/amiga')
-rw-r--r-- | builds/amiga/src/base/ftdebug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/builds/amiga/src/base/ftdebug.c b/builds/amiga/src/base/ftdebug.c index d3c5eaddd..4e13a6a6f 100644 --- a/builds/amiga/src/base/ftdebug.c +++ b/builds/amiga/src/base/ftdebug.c @@ -208,6 +208,9 @@ while ( *p && *p != ':' ) p++; + if ( !*p ) + break; + if ( *p == ':' && p > q ) { FT_Int n, i, len = (FT_Int)( p - q ); @@ -236,7 +239,7 @@ p++; if ( *p ) { - level = *p++ - '0'; + level = *p - '0'; if ( level < 0 || level > 7 ) level = -1; } |