commit | 8269791900cc765234915b29c974b34ed1f35519 | [log] [tgz] |
---|---|---|
author | David Corbett <corbett.dav@husky.neu.edu> | Sun Mar 25 20:50:41 2018 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Mon Mar 26 01:36:37 2018 -0700 |
tree | ae256371e90583d5d6392734feec010e58882202 | |
parent | a289aaff477dfbda25b90ba5ffb1296518d68d21 [diff] |
Allow trailing non-numeric chars in --unicodes
diff --git a/util/options.cc b/util/options.cc index 027d0b3..c625d65 100644 --- a/util/options.cc +++ b/util/options.cc
@@ -340,8 +340,10 @@ 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);