From ade92d961f69c81d2b359738a83f78ccf5190e93 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 24 Sep 2007 16:24:48 +0000 Subject: Fix off-by-one issue. Bump revision. --- x11/libXfont/Makefile | 3 ++- x11/libXfont/distinfo | 3 ++- x11/libXfont/patches/patch-aa | 13 +++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 x11/libXfont/patches/patch-aa (limited to 'x11/libXfont') diff --git a/x11/libXfont/Makefile b/x11/libXfont/Makefile index 17a11459993..dc63ebb6c81 100644 --- a/x11/libXfont/Makefile +++ b/x11/libXfont/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.7 2007/09/21 19:32:17 bjs Exp $ +# $NetBSD: Makefile,v 1.8 2007/09/24 16:24:48 joerg Exp $ # DISTNAME= libXfont-1.3.1 +PKGREVISION= 1 CATEGORIES= x11 devel fonts MASTER_SITES= http://xorg.freedesktop.org/releases/individual/lib/ EXTRACT_SUFX= .tar.bz2 diff --git a/x11/libXfont/distinfo b/x11/libXfont/distinfo index 220181d6b57..2fd78aa651f 100644 --- a/x11/libXfont/distinfo +++ b/x11/libXfont/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.6 2007/09/21 19:32:17 bjs Exp $ +$NetBSD: distinfo,v 1.7 2007/09/24 16:24:48 joerg Exp $ SHA1 (libXfont-1.3.1.tar.bz2) = 90153414cd3580d92cad6469166c099749cddd29 RMD160 (libXfont-1.3.1.tar.bz2) = 13c8ed7b33ec0c4f08c032d74958e49d3c177464 Size (libXfont-1.3.1.tar.bz2) = 564235 bytes +SHA1 (patch-aa) = e421de2c9b67b46c2dab651ba1bab13fd08df914 diff --git a/x11/libXfont/patches/patch-aa b/x11/libXfont/patches/patch-aa new file mode 100644 index 00000000000..c0509f80809 --- /dev/null +++ b/x11/libXfont/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.3 2007/09/24 16:24:48 joerg Exp $ + +--- src/fontfile/catalogue.c.orig 2007-09-24 18:18:59.000000000 +0200 ++++ 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; + -- cgit v1.2.3