fix for xenix large model compress

Stu Heiss stu at jpusa1.UUCP
Mon Feb 22 11:26:17 AEST 1988


Another bug in the xenix large model version of compress...
This shows up on uncompressing so your compressed files are
probably ok (unless there are other bugs lurking).  Symptoms
are mangled files after zcat'ing or uncompress'ing.  This
patch assumes you have applied the sco-compress diffs and
really only changes the macro de_stack.  I also have the recent
bugfix installed to not unlink when zcat'ing so the patch will
probably fail if you don't.  The relevent line is #define de_stack
if you have trouble with patch.

RCS file: RCS/compress.c,v
retrieving revision 4.3
retrieving revision 4.2
diff -c -r4.3 -r4.2
*** /tmp/,RCSt1a02922	Wed Feb 10 15:29:42 1988
--- /tmp/,RCSt2a02922	Wed Feb 10 15:29:46 1988
***************
*** 127,133
   *		James A. Woods		(decvax!ihnp4!ames!jaw)
   *		Joe Orost		(decvax!vax135!petsd!joe)
   *
!  * $Header: compress.c,v 4.3 88/02/10 15:28:03 stu Exp $
   * $Log:	compress.c,v $
   * Revision 4.3  88/02/10  15:28:03  stu
   * xenix decompress bug fix

--- 127,133 -----
   *		James A. Woods		(decvax!ihnp4!ames!jaw)
   *		Joe Orost		(decvax!vax135!petsd!joe)
   *
!  * $Header: compress.c,v 4.2 88/02/09 09:27:09 stu Exp $
   * $Log:	compress.c,v $
   * Revision 4.2  88/02/09  09:27:09  stu
   * fix to not do error unlink if zcat
***************
*** 129,137
   *
   * $Header: compress.c,v 4.3 88/02/10 15:28:03 stu Exp $
   * $Log:	compress.c,v $
-  * Revision 4.3  88/02/10  15:28:03  stu
-  * xenix decompress bug fix
-  * 
   * Revision 4.2  88/02/09  09:27:09  stu
   * fix to not do error unlink if zcat
   * 

--- 129,134 -----
   *
   * $Header: compress.c,v 4.2 88/02/09 09:27:09 stu Exp $
   * $Log:	compress.c,v $
   * Revision 4.2  88/02/09  09:27:09  stu
   * fix to not do error unlink if zcat
   * 
***************
*** 251,257
   * Add variable bit length output.
   *
   */
! static char rcs_ident[] = "$Header: compress.c,v 4.3 88/02/10 15:28:03 stu Exp $";
  
  #include <stdio.h>
  #include <ctype.h>

--- 248,254 -----
   * Add variable bit length output.
   *
   */
! static char rcs_ident[] = "$Header: compress.c,v 4.2 88/02/09 09:27:09 stu Exp $";
  
  #include <stdio.h>
  #include <ctype.h>
***************
*** 289,295
  
  #define tab_prefixof(i)	codetabof(i)
  # define tab_suffixof(i)	((char_type huge *)(htab))[i]
! # define de_stack		((char_type huge *)&tab_suffixof((code_int)1<<BITS))
  
  code_int free_ent = 0;			/* first unused entry */
  int exit_stat = 0;

--- 286,292 -----
  
  #define tab_prefixof(i)	codetabof(i)
  # define tab_suffixof(i)	((char_type huge *)(htab))[i]
! # define de_stack		((char_type huge *)&tab_suffixof(1<<BITS))
  
  code_int free_ent = 0;			/* first unused entry */
  int exit_stat = 0;
Stu Heiss {spl1,gargoyle,ihnp4}!jpusa1!stu



More information about the Comp.sources.bugs mailing list