2013-09-26 17:14:40 +02:00

14 lines
431 B
Plaintext

$NetBSD: patch-ad,v 1.3 2005/08/04 09:57:17 adam Exp $
--- lib/type1/scanfont.c.orig 2005-08-04 11:41:27.000000000 +0000
+++ lib/type1/scanfont.c
@@ -1244,7 +1244,7 @@ int scan_font(FontP)
}
if ( namelen >= MAXPATHLEN ) {
/* Hopefully, this will lead to a file open error */
- namelen = MAXPATHLEN;
+ namelen = MAXPATHLEN - 1;
}
strncpy(filename,nameP,namelen);
filename[namelen] = '\0';