summaryrefslogtreecommitdiff
path: root/archivers/ha/patches/patch-aa
blob: 063cff1d78042d0ed87c394c431e3d99a3eefb15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$NetBSD: patch-aa,v 1.3 1998/08/07 10:35:49 agc Exp $

*** nix/machine.c.bak	Thu Jan 12 09:53:00 1995
--- nix/machine.c	Tue Jan 24 19:38:07 1995
***************
*** 417,423 ****
      if (plainname!=NULL) free(plainname),plainname=NULL;
      if ((plainname=malloc(strlen(mdfullpath)+1))==NULL) 
        error(1,ERR_MEM,"md_stripname()");
!     for (i=strlen(mdfullpath)-1;i>0;i--) {
  	if (mdfullpath[i]=='/') {
  	    i++;
  	    break;
--- 417,423 ----
      if (plainname!=NULL) free(plainname),plainname=NULL;
      if ((plainname=malloc(strlen(mdfullpath)+1))==NULL) 
        error(1,ERR_MEM,"md_stripname()");
!     for (i=strlen(mdfullpath)-1;i>=0;i--) {
  	if (mdfullpath[i]=='/') {
  	    i++;
  	    break;
--- c/hsc.c	1997/11/18 12:32:02	1.1
+++ c/hsc.c	1997/11/18 12:33:06
@@ -491,6 +491,7 @@
 
     esc=adj_escape_prob(fe[cp],cp);
     tot=ft[cp];
+    cf = 0;
     if (nec>=NECLIM) {
 	if (tot<=NECTLIM && nec==NECMAX) sv=2;
 	else sv=1;
@@ -548,7 +549,7 @@
     register U16B i;
     register S16B sum,tot,esc,cf;
     
-    esc=tot=0;
+    esc=tot=cf=0;
     for (i=cp;i!=NIL;i=nb[i]) {
 	if (!cmask[fc[i]]) {
 	    tot+=fa[i];