diff options
author | Werner Lemberg <wl@gnu.org> | 2016-07-11 05:56:26 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2016-07-11 05:56:26 +0200 |
commit | c3e83b4662962bdfd6cf9c6f4acaececea806ca0 (patch) | |
tree | f757a7f2f9f4eb059652caefd46375231c1afc7d /src/type42/t42objs.c | |
parent | 84d3df75012a4b5b0b94966bcfaffd73d7f52824 (diff) | |
download | freetype2-c3e83b4662962bdfd6cf9c6f4acaececea806ca0.tar.gz |
Replace calls to `atol' with `strtol'.
We later on need strtol's `endptr' feature.
* include/freetype/config/ftstdlib.h (ft_atol): Replace with...
(ft_strtol): ... this.
* src/base/ftdbgmem.c (ft_mem_debug_init): Updated.
* src/cid/cidparse.c (cid_parser_new): Ditto.
* src/type42/t42drivr.c (t42_get_name_index), src/type42/t42objs.c
(T42_GlyphSlot_Load): Ditto.
Diffstat (limited to 'src/type42/t42objs.c')
-rw-r--r-- | src/type42/t42objs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/type42/t42objs.c b/src/type42/t42objs.c index 4672c6e16..089ae0f5a 100644 --- a/src/type42/t42objs.c +++ b/src/type42/t42objs.c @@ -656,8 +656,9 @@ FT_TRACE1(( "T42_GlyphSlot_Load: glyph index %d\n", glyph_index )); /* map T42 glyph index to embedded TTF's glyph index */ - glyph_index = (FT_UInt)ft_atol( - (const char *)t42face->type1.charstrings[glyph_index] ); + glyph_index = (FT_UInt)ft_strtol( + (const char *)t42face->type1.charstrings[glyph_index], + NULL, 10 ); t42_glyphslot_clear( t42slot->ttslot ); error = ttclazz->load_glyph( t42slot->ttslot, |