summaryrefslogtreecommitdiff
path: root/archivers/zoo/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/zoo/patches/patch-ak')
-rw-r--r--archivers/zoo/patches/patch-ak23
1 files changed, 23 insertions, 0 deletions
diff --git a/archivers/zoo/patches/patch-ak b/archivers/zoo/patches/patch-ak
new file mode 100644
index 00000000000..f9a71d359dd
--- /dev/null
+++ b/archivers/zoo/patches/patch-ak
@@ -0,0 +1,23 @@
+$NetBSD: patch-ak,v 1.1 2006/07/19 19:34:37 adrianp Exp $
+
+--- misc.c.orig 1991-07-16 16:52:54.000000000 +0100
++++ misc.c
+@@ -135,11 +135,17 @@ if available, else the short filename is
+ char *fullpath (direntry)
+ struct direntry *direntry;
+ {
+- static char result[PATHSIZE];
++ static char result[PATHSIZE+LFNAMESIZE+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");
++ *result = '\0';
++ }
++
+ return (result);
+ }
+