aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/fastjar/files/patch-compress.c
blob: 6d40bf223c1dfc09d777cbb9c2ed8133470ba95f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- compress.c.orig	2008-10-15 17:25:36 UTC
+++ compress.c
@@ -86,6 +86,10 @@ write_data (int fd, void *buf, size_t len,
 	      exit(EXIT_FAILURE);
 	    }
 	}
+      else if (!next && here + len >= end_of_entries)
+	{
+	  end_of_entries = here + len;
+	}
     }
 
   return write (fd, buf, len);