summaryrefslogtreecommitdiff
path: root/archivers/rzip/patches
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-08-29 15:29:04 +0000
committerrecht <recht@pkgsrc.org>2004-08-29 15:29:04 +0000
commit63b71f3f46ae3155276157714d77591b98cb2707 (patch)
treed4aaee5b09c35e84d53dd192909ee34322fcae50 /archivers/rzip/patches
parent9898f2448392f6eaf4573e749b3a7f3a9aadd49f (diff)
downloadpkgsrc-63b71f3f46ae3155276157714d77591b98cb2707.tar.gz
initial import of rzip-2.0
package provided by Miles Nordin in PR 26774 rzip is a compression program, similar in functionality to gzip or bzip2, but able to take advantage long distance redundencies in files, which can sometimes allow rzip to produce much better compression ratios than other programs.
Diffstat (limited to 'archivers/rzip/patches')
-rw-r--r--archivers/rzip/patches/patch-aa28
1 files changed, 28 insertions, 0 deletions
diff --git a/archivers/rzip/patches/patch-aa b/archivers/rzip/patches/patch-aa
new file mode 100644
index 00000000000..6f47ed7bb82
--- /dev/null
+++ b/archivers/rzip/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/08/29 15:29:04 recht Exp $
+
+--- main.c.orig Thu Aug 26 23:31:21 2004
++++ main.c Thu Aug 26 23:35:52 2004
+@@ -18,6 +18,7 @@
+ /* rzip compression - main program */
+
+ #include "rzip.h"
++#include <assert.h>
+
+ static void usage(void)
+ {
+@@ -138,9 +139,14 @@
+ fatal("%s: unknown suffix\n", control->infile);
+ }
+
+- control->outfile = strndup(control->infile,
++ control->outfile = malloc(strlen(control->infile) -
++ strlen(control->suffix) + 1);
++ assert(control->outfile);
++ strncpy(control->outfile, control->infile,
+ strlen(control->infile) -
+ strlen(control->suffix));
++ *(control->outfile + strlen(control->infile) -
++ strlen(control->suffix)) = '\0';
+ }
+
+ fd_in = open(control->infile,O_RDONLY);