xml.c: fix typo in checking surrogate range - frontends - front-ends for some sites (experiment) (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 9b267a7fb5fc713932a218745a6e5a9ff27818ab (DIR) parent 1241dd1ab43f65c6a6eaace18adac407da38f63b (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 22 Jan 2021 22:51:45 +0100 xml.c: fix typo in checking surrogate range Diffstat: M xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/xml.c b/xml.c @@ -317,7 +317,7 @@ numericentitytostr(const char *e, char *buf, size_t bufsiz) l = strtol(e, &end, 10); /* invalid value or not a well-formed entity or invalid code point */ if (errno || e == end || *end != ';' || l < 0 || l > 0x10ffff || - (l >= 0xd800 && l <= 0xdffff)) + (l >= 0xd800 && l <= 0xdfff)) return -1; len = codepointtoutf8(l, buf); buf[len] = '\0';