summaryrefslogtreecommitdiff
path: root/ftp/tnftpd/files/patch-libnetbsd-glob.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ftp/tnftpd/files/patch-libnetbsd-glob.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ftp/tnftpd/files/patch-libnetbsd-glob.c b/ftp/tnftpd/files/patch-libnetbsd-glob.c
new file mode 100644
index 000000000000..d54a2e93d6fa
--- /dev/null
+++ b/ftp/tnftpd/files/patch-libnetbsd-glob.c
@@ -0,0 +1,12 @@
+--- libnetbsd/glob.c.orig Mon Dec 15 13:18:43 2003
++++ libnetbsd/glob.c Wed Dec 13 08:16:13 2006
+@@ -497,7 +497,8 @@
+ * we save one character so that we can use ptr >= limit,
+ * in the general case when we are appending non nul chars only.
+ */
+- return(glob2(pathbuf, pathbuf, pathbuf + sizeof(pathbuf) - 1, pattern,
++ return(glob2(pathbuf, pathbuf,
++ pathbuf + (sizeof(pathbuf) / sizeof(*pathbuf)) - 1, pattern,
+ pglob, limit));
+ }
+