forked from minhngoc25a/freetype2
* src/type1/t1afm.c (afm_atoindex): Fix boundary test. Reported
by Dirck Blaskey.
This commit is contained in:
parent
c28b8c1bfb
commit
3037b069f8
|
@ -1,3 +1,8 @@
|
|||
2004-06-25 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/type1/t1afm.c (afm_atoindex): Fix boundary test. Reported
|
||||
by Dirck Blaskey.
|
||||
|
||||
2004-06-24 David Turner <david@freetype.org>
|
||||
|
||||
* src/truetype/ttgload.c, src/truetype/ttxgvar.c: removing
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* AFM support for Type 1 fonts (body). */
|
||||
/* */
|
||||
/* Copyright 1996-2001, 2002, 2003 by */
|
||||
/* Copyright 1996-2001, 2002, 2003, 2004 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -63,13 +63,13 @@
|
|||
|
||||
|
||||
/* skip whitespace */
|
||||
while ( ( *p == ' ' || *p == '\t' || *p == ':' || *p == ';' ) &&
|
||||
p < limit )
|
||||
while ( p < limit &&
|
||||
( *p == ' ' || *p == '\t' || *p == ':' || *p == ';' ) )
|
||||
p++;
|
||||
*start = p;
|
||||
|
||||
/* now, read glyph name */
|
||||
while ( IS_ALPHANUM( *p ) && p < limit )
|
||||
while ( p < limit && IS_ALPHANUM( *p ) )
|
||||
p++;
|
||||
|
||||
len = p - *start;
|
||||
|
|
Loading…
Reference in New Issue