From: Michael Wallner Date: Thu, 29 Dec 2005 21:06:55 +0000 (+0000) Subject: - no fatal ereallocs please X-Git-Tag: RELEASE_0_21_0~11 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d4f8313f211bdc3e62a4788690cad8edef85f7f2;p=m6w6%2Fext-http - no fatal ereallocs please --- diff --git a/http_encoding_api.c b/http_encoding_api.c index 6c8a048..c0d1140 100644 --- a/http_encoding_api.c +++ b/http_encoding_api.c @@ -479,7 +479,7 @@ PHP_HTTP_API STATUS _http_encoding_deflate_stream_flush(http_encoding_stream *s, { case Z_OK: case Z_STREAM_END: - *encoded_len = 0x800 - s->stream.avail_out; + *encoded_len = 0x8000 - s->stream.avail_out; *encoded = erealloc_rel(*encoded, *encoded_len + 1); (*encoded)[*encoded_len] = '\0'; return SUCCESS;