aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-01-21 14:32:53 +0100
committerMattias Andrée <maandree@kth.se>2023-01-21 14:32:53 +0100
commit450b2fe79521550175117d6c1058f2d4a57f1ddb (patch)
tree6f6f285707f878b1ca1cfa7ca6735f4462d7ef61
parentlibfonts_parse_encoding_line: add support for octal and hexadecimal (diff)
downloadlibfonts-450b2fe79521550175117d6c1058f2d4a57f1ddb.tar.gz
libfonts-450b2fe79521550175117d6c1058f2d4a57f1ddb.tar.bz2
libfonts-450b2fe79521550175117d6c1058f2d4a57f1ddb.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libfonts_parse_encoding_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfonts_parse_encoding_line.c b/libfonts_parse_encoding_line.c
index 07b6a85..6750b1e 100644
--- a/libfonts_parse_encoding_line.c
+++ b/libfonts_parse_encoding_line.c
@@ -57,7 +57,7 @@ get_uints(uintmax_t *u1p, uintmax_t *u2p, uintmax_t *u3p, uintmax_t max,
int r = 0;
uintmax_t u, *up, digit;
- while (r < INT_MAX && isdigit(*s)) {
+ while (r < INT_MAX) {
u = 0;
if (s[0] == '0' && (s[1] == 'x' || s[1] == 'X') && isxdigit(s[2])) {