freebsd-ports/graphics/gd/files/patch-gdft.c
Dirk Meyer 08a82e7ea8 - update to 2.2.3
- remove option VPX
Security: CVE-2016-6207
Security: CVE-2016-6214
Security: CVE-2016-6132
Security: CVE-2016-5766
PR:		211562
MFH:		2016Q3
2016-08-28 17:42:42 +00:00

29 lines
633 B
C

--- src/gdft.c.orig 2016-07-21 10:32:27.000000000 +0200
+++ src/gdft.c 2016-08-28 19:25:01.730120000 +0200
@@ -139,7 +139,7 @@
}
#else
-#ifndef HAVE_LIBFONTCONFIG
+#if 0
static char * font_pattern(char **fontpath, char *fontpattern)
{
(void)fontpath;
@@ -446,15 +446,15 @@
return (strcmp (a->fontlist, b->fontlist) == 0 && a->flags == b->flags);
}
+#ifdef HAVE_LIBFONTCONFIG
static int useFontConfig(int flag)
{
-#ifdef HAVE_LIBFONTCONFIG
if (fontConfigFlag) {
return (!(flag & gdFTEX_FONTPATHNAME));
}
-#endif
return flag & gdFTEX_FONTCONFIG;
}
+#endif
static void *
fontFetch (char **error, void *key)