diff options
-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; + |