summaryrefslogtreecommitdiff
path: root/x11/libXfont/patches/patch-aa
blob: c0509f808091792443cbd941b44025d42952da36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;