]> git.wh0rd.org - fontconfig.git/blobdiff - src/fclist.c
Reviewed by: Keith Packard <keithp@keithp.com>
[fontconfig.git] / src / fclist.c
index 0885c933dd592547cb5b6ebd30ea03fbe6aa362b..6730f20324f92ac95e6bd76adfcb82bda8f3b71c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * $RCSId: xc/lib/fontconfig/src/fclist.c,v 1.11tsi Exp $
  *
- * Copyright © 2000 Keith Packard
+ * Copyright Â© 2000 Keith Packard
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -82,7 +82,7 @@ FcObjectSetAdd (FcObjectSet *os, const char *object)
        mid++;
     memmove (os->objects + mid + 1, os->objects + mid, 
             (os->nobject - mid) * sizeof (const char *));
-    os->objects[mid] = object;
+    os->objects[mid] = FcObjectStaticName (object);
     os->nobject++;
     return FcTrue;
 }
@@ -200,9 +200,9 @@ FcListPatternEqual (FcPattern       *p1,
  * FcTrue iff all objects in "p" match "font"
  */
 
-static FcBool
-FcListPatternMatchAny (FcPattern *p,
-                      FcPattern *font)
+FcBool
+FcListPatternMatchAny (const FcPattern *p,
+                      const FcPattern *font)
 {
     int                    i;
     FcPatternElt   *e;