From d5522ac0603a15bd87f795d36dc218681befe022 Mon Sep 17 00:00:00 2001 From: Weiyi Wu Date: Mon, 22 Jul 2019 09:49:22 +0200 Subject: [PATCH] * src/cid/cidload.c (cid_hex_to_binary): Fix typo (#56653). --- ChangeLog | 4 ++++ src/cid/cidload.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dfafdfbf2..0229dce31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2019-07-22 Weiyi Wu + + * src/cid/cidload.c (cid_hex_to_binary): Fix typo (#56653). + 2019-07-12 Werner Lemberg [sfnt, winfonts] Avoid memory leaks in case of error (#56587). diff --git a/src/cid/cidload.c b/src/cid/cidload.c index fce3e37da..fdd877ec3 100644 --- a/src/cid/cidload.c +++ b/src/cid/cidload.c @@ -715,7 +715,7 @@ if ( ft_isdigit( *p ) ) val = (FT_Byte)( *p - '0' ); else if ( *p >= 'a' && *p <= 'f' ) - val = (FT_Byte)( *p - 'a' ); + val = (FT_Byte)( *p - 'a' + 10 ); else if ( *p >= 'A' && *p <= 'F' ) val = (FT_Byte)( *p - 'A' + 10 ); else if ( *p == ' ' ||