aboutsummaryrefslogtreecommitdiff
path: root/archivers/zoo/files/patch-misc.c
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2006-04-06 07:22:10 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2006-04-06 07:22:10 +0000
commit4aa2bd955e8a953c31d20b5851abfd9abbd9cef3 (patch)
tree4b1c04ec3cae84f64f88eaedcb5b3f99658781a6 /archivers/zoo/files/patch-misc.c
parent6f9844f3eaeeeb2d98d6a2f4db8f82ea629bea1b (diff)
downloadports-4aa2bd955e8a953c31d20b5851abfd9abbd9cef3.tar.gz
ports-4aa2bd955e8a953c31d20b5851abfd9abbd9cef3.zip
Notes
Diffstat (limited to 'archivers/zoo/files/patch-misc.c')
-rw-r--r--archivers/zoo/files/patch-misc.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/archivers/zoo/files/patch-misc.c b/archivers/zoo/files/patch-misc.c
new file mode 100644
index 000000000000..e69a1207fc61
--- /dev/null
+++ b/archivers/zoo/files/patch-misc.c
@@ -0,0 +1,20 @@
+--- misc.c.orig Tue Jul 16 17:52:54 1991
++++ misc.c Thu Apr 6 08:45:41 2006
+@@ -135,11 +135,16 @@
+ char *fullpath (direntry)
+ struct direntry *direntry;
+ {
+- static char result[PATHSIZE];
++ static char result[PATHSIZE+PATHSIZE+12]; /* Room for enough space */
+ combine (result,
+ direntry->dirlen != 0 ? direntry->dirname : "",
+ (direntry->namlen != 0) ? direntry->lfname : direntry->fname
+ );
++
++ if (strlen (result) >= PATHSIZE) {
++ prterror ('f', "Combined dirname and filename too long\n");
++ }
++
+ return (result);
+ }
+