summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fontfile/catalogue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontfile/catalogue.c b/src/fontfile/catalogue.c
index 33d4434..c0d90f8 100644
--- a/src/fontfile/catalogue.c
+++ b/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;