Fossil SCM
Fix a bug in the compression logic of the tarball generator.
Commit
518ec9dd9f1a892f9cddfb87de41742f6344e071
Parent
4a2019ddd08c8b6…
1 file changed
+1
-1
+1
-1
| --- src/gzip.c | ||
| +++ src/gzip.c | ||
| @@ -74,11 +74,11 @@ | ||
| 74 | 74 | void gzip_step(const char *pIn, int nIn){ |
| 75 | 75 | char *zOutBuf; |
| 76 | 76 | int nOut; |
| 77 | 77 | |
| 78 | 78 | nOut = nIn + nIn/10 + 100; |
| 79 | - if( nOut<25000 ) nOut = 25000; | |
| 79 | + if( nOut<100000 ) nOut = 100000; | |
| 80 | 80 | zOutBuf = fossil_malloc(nOut); |
| 81 | 81 | gzip.stream.avail_in = nIn; |
| 82 | 82 | gzip.stream.next_in = (unsigned char*)pIn; |
| 83 | 83 | gzip.stream.avail_out = nOut; |
| 84 | 84 | gzip.stream.next_out = (unsigned char*)zOutBuf; |
| 85 | 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<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 |