Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/archivers/arc/files/patch-arclzw.c
16149 views
1
--- arclzw.c.orig 2010-08-07 13:06:42 UTC
2
+++ arclzw.c
3
@@ -57,9 +57,11 @@ static VOID putcode();
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
@@ -560,7 +562,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