From 86bdf4598fb46f7f2a36151016a5d318da073d60 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 5 Jun 2009 16:57:35 -0400 Subject: [PATCH] Add XXX note about Unicode Plane 16 --- src/fccharset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); -- 2.39.5