From d04d35bd963361ffe580c95830e791b21fa8d87e Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 26 Jul 2006 16:04:41 +0000 Subject: fontconfig: apply a patch by Philipp Zabel to stop xtscal from crashing --- packages/fontconfig/files/one-j-too-many.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 packages/fontconfig/files/one-j-too-many.patch (limited to 'packages/fontconfig/files') diff --git a/packages/fontconfig/files/one-j-too-many.patch b/packages/fontconfig/files/one-j-too-many.patch new file mode 100644 index 0000000000..04d8e0237e --- /dev/null +++ b/packages/fontconfig/files/one-j-too-many.patch @@ -0,0 +1,24 @@ +--- fontconfig-2.3.95/src/fcname.c.orig 2006-07-26 15:20:01.469770388 +0200 ++++ fontconfig-2.3.95/src/fcname.c 2006-07-26 15:22:38.415239062 +0200 +@@ -305,17 +305,16 @@ + FcObjectPtrU (FcObjectPtr si) + { + const FcObjectTypeList *l; +- int i, j; ++ int i; + + if (si > 0) + { + if (si < biggest_known_ntypes) + return biggest_known_types[si].object; + +- j = 0; + for (l = _FcObjectTypes; l; l = l->next) +- for (i = 0; i < l->ntypes; i++, j++) +- if (j == si) ++ for (i = 0; i < l->ntypes; i++) ++ if (l->basic_offset+i == si) + return l->types[i].object; + } + + -- cgit v1.2.3