https://bugzilla.novell.com/show_bug.cgi?id=302498#c2
--- Comment #2 from Dirk Mueller 2007-08-22 07:04:49 MST ---
there is another, unrelated to that one:
--- src/fcpat.c
+++ src/fcpat.c
@@ -340,11 +340,13 @@ FcPatternElt *
FcPatternObjectInsertElt (FcPattern *p, FcObject object)
{
int i;
- FcPatternElt *e;
i = FcPatternObjectPosition (p, object);
if (i < 0)
{
+ FcPatternElt *e;
+
+ e = FcPatternElts(p);
i = -i - 1;
/* reallocate array */
@@ -353,7 +355,7 @@ FcPatternObjectInsertElt (FcPattern *p, FcObject object)
int s = p->size + 16;
if (p->size)
{
- FcPatternElt *e0 = FcPatternElts(p);
+ FcPatternElt *e0 = e;
e = (FcPatternElt *) realloc (e0, s * sizeof (FcPatternElt));
if (!e) /* maybe it was mmapped */
{
@@ -377,8 +379,7 @@ FcPatternObjectInsertElt (FcPattern *p, FcObject object)
p->size++;
}
}
-
- e = FcPatternElts(p);
+
/* move elts up */
memmove (e + i + 1,
e + i,
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.