diff options
author | Horst G. Burkhardt <horst@adelielinux.org> | 2018-03-29 08:53:57 +0000 |
---|---|---|
committer | Horst G. Burkhardt <horst@adelielinux.org> | 2018-03-29 08:53:57 +0000 |
commit | accd4bdd6eb610f180db812281b807a42bdd68aa (patch) | |
tree | 82a93828730f07150309c2a983b98cda4c806bee /user/ncompress/fix-9bit-compress.patch | |
parent | 61ce37455ec2f99ef314b876859ce24c9166ca1e (diff) | |
download | packages-accd4bdd6eb610f180db812281b807a42bdd68aa.tar.gz packages-accd4bdd6eb610f180db812281b807a42bdd68aa.tar.bz2 packages-accd4bdd6eb610f180db812281b807a42bdd68aa.tar.xz packages-accd4bdd6eb610f180db812281b807a42bdd68aa.zip |
user/ncompress: ncompress no longer conflicts with gzip; bugfix debian #220820
Diffstat (limited to 'user/ncompress/fix-9bit-compress.patch')
-rw-r--r-- | user/ncompress/fix-9bit-compress.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/user/ncompress/fix-9bit-compress.patch b/user/ncompress/fix-9bit-compress.patch new file mode 100644 index 000000000..3fcd13d2f --- /dev/null +++ b/user/ncompress/fix-9bit-compress.patch @@ -0,0 +1,20 @@ +--- old/compress42.c 1992-10-28 06:10:53.000000000 -0500 ++++ fixed/compress42.c 2003-11-12 19:42:49.000000000 -0500 +@@ -228,7 +228,7 @@ + #define FIRST 257 /* first free entry */ + #define CLEAR 256 /* table clear output code */ + +-#define INIT_BITS 9 /* initial number of bits/code */ ++#define INIT_BITS 8 /* initial number of bits/code */ + + #ifndef SACREDMEM + /* +@@ -819,7 +819,7 @@ + nextarg: continue; + } + +- if (maxbits < INIT_BITS) maxbits = INIT_BITS; ++ if (maxbits <= INIT_BITS) maxbits = INIT_BITS + 1; + if (maxbits > BITS) maxbits = BITS; + + if (*filelist != NULL)
\ No newline at end of file |