summaryrefslogtreecommitdiff
path: root/archivers/arc/files/patch-arclzw.c
blob: 746fcd02993b1d2e49cf81e3f54354da2bba0f62 (plain) (blame)
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
--- arclzw.c.orig	2013-06-27 02:00:19 UTC
+++ arclzw.c
@@ -55,9 +55,11 @@ extern u_char	*pinbuf;
 #define NOT_FND  0xFFFF
 
 extern u_char	*pinbuf;
-u_char		*inbeg, *inend;
-u_char          *outbuf;
-u_char          *outbeg, *outend; 
+u_char		*inbeg;
+u_char		*inend;
+extern u_char	*outbuf;
+u_char		*outbeg;
+extern u_char	*outend; 
 
 static int      sp;		/* current stack pointer */
 static int	inflag;
@@ -558,7 +560,7 @@ decomp(squash, f, t)		/* decompress a file */
 		 */
 		if (code >= free_ent) {
 			if (code > free_ent) {
-				if (warn) {
+				if (arcwarn) {
 					printf("Corrupted compressed file.\n");
 					printf("Invalid code %d when max is %d.\n",
 					       code, free_ent);