Fossil SCM

Fix a bug in the compression logic of the tarball generator.

drh 2011-03-24 13:36 trunk
Commit 518ec9dd9f1a892f9cddfb87de41742f6344e071
1 file changed +1 -1
+1 -1
--- src/gzip.c
+++ src/gzip.c
@@ -74,11 +74,11 @@
7474
void gzip_step(const char *pIn, int nIn){
7575
char *zOutBuf;
7676
int nOut;
7777
7878
nOut = nIn + nIn/10 + 100;
79
- if( nOut<25000 ) nOut = 25000;
79
+ if( nOut<100000 ) nOut = 100000;
8080
zOutBuf = fossil_malloc(nOut);
8181
gzip.stream.avail_in = nIn;
8282
gzip.stream.next_in = (unsigned char*)pIn;
8383
gzip.stream.avail_out = nOut;
8484
gzip.stream.next_out = (unsigned char*)zOutBuf;
8585
--- src/gzip.c
+++ src/gzip.c
@@ -74,11 +74,11 @@
74 void gzip_step(const char *pIn, int nIn){
75 char *zOutBuf;
76 int nOut;
77
78 nOut = nIn + nIn/10 + 100;
79 if( nOut<25000 ) nOut = 25000;
80 zOutBuf = fossil_malloc(nOut);
81 gzip.stream.avail_in = nIn;
82 gzip.stream.next_in = (unsigned char*)pIn;
83 gzip.stream.avail_out = nOut;
84 gzip.stream.next_out = (unsigned char*)zOutBuf;
85
--- src/gzip.c
+++ src/gzip.c
@@ -74,11 +74,11 @@
74 void gzip_step(const char *pIn, int nIn){
75 char *zOutBuf;
76 int nOut;
77
78 nOut = nIn + nIn/10 + 100;
79 if( nOut<100000 ) nOut = 100000;
80 zOutBuf = fossil_malloc(nOut);
81 gzip.stream.avail_in = nIn;
82 gzip.stream.next_in = (unsigned char*)pIn;
83 gzip.stream.avail_out = nOut;
84 gzip.stream.next_out = (unsigned char*)zOutBuf;
85

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button