From: Behdad Esfahbod Date: Fri, 5 Jun 2009 20:57:35 +0000 (-0400) Subject: Add XXX note about Unicode Plane 16 X-Git-Tag: 2.7.0~11 X-Git-Url: https://git.wh0rd.org/?p=fontconfig.git;a=commitdiff_plain;h=86bdf4598fb46f7f2a36151016a5d318da073d60 Add XXX note about Unicode Plane 16 --- diff --git a/src/fccharset.c b/src/fccharset.c index 2ec74da..fba1f4a 100644 --- a/src/fccharset.c +++ b/src/fccharset.c @@ -143,12 +143,12 @@ FcCharSetPutLeaf (FcCharSet *fcs, intptr_t *leaves = FcCharSetLeaves (fcs); FcChar16 *numbers = FcCharSetNumbers (fcs); + /* XXX We can't handle Unicode values in Plane 16 */ ucs4 >>= 8; if (ucs4 >= 0x10000) return FcFalse; - if (!fcs->num) - leaves = malloc (sizeof (*leaves)); - else + + if (fcs->num == fcs->alloced) { intptr_t *new_leaves = realloc (leaves, (fcs->num + 1) * sizeof (*leaves));