summaryrefslogtreecommitdiff
path: root/src/type42/t42objs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/type42/t42objs.c')
-rw-r--r--src/type42/t42objs.c5
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,