]> git.wh0rd.org Git - fontconfig.git/commitdiff
Add XXX note about Unicode Plane 16
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Jun 2009 20:57:35 +0000 (16:57 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 24 Jun 2009 17:52:12 +0000 (13:52 -0400)
src/fccharset.c

index 2ec74da2893c9fca98442aafb33c8accb5247bb4..fba1f4ab4a3b6bc573046b798c9855596f9d6ff7 100644 (file)
@@ -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));