diff options
author | marcus <marcus@FreeBSD.org> | 2005-03-28 07:54:40 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2005-03-28 07:54:40 +0800 |
commit | b0680caaecde25c8fe2fd5ccdeed2edaadf30f3e (patch) | |
tree | a6153f6e968b2572e04c761adcc2233d3a0f1322 /x11-fonts | |
parent | c5848d08ee65207e43ac316258242a16236236e7 (diff) | |
download | freebsd-ports-gnome-b0680caaecde25c8fe2fd5ccdeed2edaadf30f3e.tar.gz freebsd-ports-gnome-b0680caaecde25c8fe2fd5ccdeed2edaadf30f3e.tar.zst freebsd-ports-gnome-b0680caaecde25c8fe2fd5ccdeed2edaadf30f3e.zip |
Fix a crash that can occur when using TrueType fonts. This should have
gone in with X.Org 6.8.2, but since we're using the external libXft
library, it was missed.
Reported by: adamw
Obtained from: Freedesktop.org CVS
Approved by: portmgr (implicit)
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/libXft/Makefile | 1 | ||||
-rw-r--r-- | x11-fonts/libXft/files/patch-xftfreetype.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/x11-fonts/libXft/Makefile b/x11-fonts/libXft/Makefile index cf75a4d4dd9d..d20a0946116b 100644 --- a/x11-fonts/libXft/Makefile +++ b/x11-fonts/libXft/Makefile @@ -7,6 +7,7 @@ PORTNAME= libXft PORTVERSION= 2.1.6 +PORTREVISION= 1 CATEGORIES= x11-fonts MASTER_SITES= http://freedesktop.org/~ajax/xlibs-release/ diff --git a/x11-fonts/libXft/files/patch-xftfreetype.c b/x11-fonts/libXft/files/patch-xftfreetype.c new file mode 100644 index 000000000000..2868f3d52a1f --- /dev/null +++ b/x11-fonts/libXft/files/patch-xftfreetype.c @@ -0,0 +1,12 @@ +--- xftfreetype.c.orig Sun Mar 27 18:51:12 2005 ++++ xftfreetype.c Sun Mar 27 18:51:53 2005 +@@ -289,7 +289,8 @@ _XftReleaseFile (XftFtFile *f) + if (f->face) + FT_Done_Face (f->face); + } +- XftMemFree (XFT_MEM_FILE, sizeof (XftFtFile) + strlen (f->file) + 1); ++ XftMemFree (XFT_MEM_FILE, ++ sizeof (XftFtFile) + (f->file ? strlen (f->file) + 1 : 0)); + free (f); + } + |