summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-06-05 16:57:35 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-06-24 13:52:12 -0400
commit86bdf4598fb46f7f2a36151016a5d318da073d60 (patch)
tree19378914d270aa42f19ff11cb5bde3095776e0a6 /src
parentefe5eae26b2443363b1000b3197d1731a40f8af9 (diff)
Add XXX note about Unicode Plane 16
Diffstat (limited to 'src')
-rw-r--r--src/fccharset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fccharset.c b/src/fccharset.c
index 2ec74da2..fba1f4ab 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));