Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/archivers/arc/files/patch-arclzw.c
18157 views
1
--- arclzw.c.orig 2013-06-27 02:00:19 UTC
2
+++ arclzw.c
3
@@ -55,9 +55,11 @@ extern u_char *pinbuf;
4
#define NOT_FND 0xFFFF
5
6
extern u_char *pinbuf;
7
-u_char *inbeg, *inend;
8
-u_char *outbuf;
9
-u_char *outbeg, *outend;
10
+u_char *inbeg;
11
+u_char *inend;
12
+extern u_char *outbuf;
13
+u_char *outbeg;
14
+extern u_char *outend;
15
16
static int sp; /* current stack pointer */
17
static int inflag;
18
@@ -558,7 +560,7 @@ decomp(squash, f, t) /* decompress a file */
19
*/
20
if (code >= free_ent) {
21
if (code > free_ent) {
22
- if (warn) {
23
+ if (arcwarn) {
24
printf("Corrupted compressed file.\n");
25
printf("Invalid code %d when max is %d.\n",
26
code, free_ent);
27
28