In compress_buffer(), add some room for the zlib overhead
authorFabian Keil <fk@fabiankeil.de>
Fri, 8 Jul 2011 13:27:56 +0000 (13:27 +0000)
committerFabian Keil <fk@fabiankeil.de>
Fri, 8 Jul 2011 13:27:56 +0000 (13:27 +0000)
commitfc95f97a7020e56f373bf744715d73afe58b773a
tree9da09c0ebbe6148ab6581177f8c8b072ec660573
parent3947ebff095737086603dadbf9f8443e3accf0e1
In compress_buffer(), add some room for the zlib overhead

If the entropy is high enough, the data may not be compressable,
or at least not compressable enough to make room for the header.

If the compression level is 0, the "compressed" is guaranteed
to take more room than the "uncompressed" data.
cgi.c