diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2007-10-30 21:07:49 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2007-10-30 21:07:49 +0000 |
commit | b27f549ad336ff9c8aac97b5166a7949a01dc261 (patch) | |
tree | dd18a5325f319fb5d3dbdde96bd752eafd951284 /x11-fonts | |
parent | 3c92191760ad3313583653d7f1a197ee43dc642a (diff) | |
download | ports-b27f549ad336ff9c8aac97b5166a7949a01dc261.tar.gz ports-b27f549ad336ff9c8aac97b5166a7949a01dc261.zip |
Notes
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/libXfont/Makefile | 1 | ||||
-rw-r--r-- | x11-fonts/libXfont/files/patch-src_fontfile_catalogue.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/x11-fonts/libXfont/Makefile b/x11-fonts/libXfont/Makefile index d255b420bc3a..5e57f7cf2fff 100644 --- a/x11-fonts/libXfont/Makefile +++ b/x11-fonts/libXfont/Makefile @@ -7,6 +7,7 @@ PORTNAME= libXfont PORTVERSION= 1.3.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= x11-fonts diff --git a/x11-fonts/libXfont/files/patch-src_fontfile_catalogue.c b/x11-fonts/libXfont/files/patch-src_fontfile_catalogue.c new file mode 100644 index 000000000000..f25280eef906 --- /dev/null +++ b/x11-fonts/libXfont/files/patch-src_fontfile_catalogue.c @@ -0,0 +1,11 @@ +--- src/fontfile/catalogue.c.orig ++++ src/fontfile/catalogue.c +@@ -156,7 +156,7 @@ CatalogueRescan (FontPathElementPtr fpe) + while (entry = readdir(dir), entry != NULL) + { + snprintf(link, sizeof link, "%s/%s", path, entry->d_name); +- len = readlink(link, dest, sizeof dest); ++ len = readlink(link, dest, sizeof dest - 1); + if (len < 0) + continue; + |