diff options
author | David Corbett <corbett.dav@husky.neu.edu> | 2018-03-25 20:50:41 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-03-26 01:36:37 -0700 |
commit | 8269791900cc765234915b29c974b34ed1f35519 (patch) | |
tree | ae256371e90583d5d6392734feec010e58882202 /util | |
parent | a289aaff477dfbda25b90ba5ffb1296518d68d21 (diff) |
Allow trailing non-numeric chars in --unicodes
Diffstat (limited to 'util')
-rw-r--r-- | util/options.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/options.cc b/util/options.cc index 027d0b39..c625d657 100644 --- a/util/options.cc +++ b/util/options.cc @@ -340,8 +340,10 @@ parse_unicodes (const char *name G_GNUC_UNUSED, while (s && *s) { - while (*s && strchr ("<+>{},;&#\\xXuUnNiI\n\t", *s)) + while (*s && strchr ("<+>{},;&#\\xXuUnNiI\n\t\v\f\r ", *s)) s++; + if (!*s) + break; errno = 0; hb_codepoint_t u = strtoul (s, &p, 16); |