projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
960f75a
)
- no fatal ereallocs please
author
Michael Wallner
<mike@php.net>
Thu, 29 Dec 2005 21:06:55 +0000
(21:06 +0000)
committer
Michael Wallner
<mike@php.net>
Thu, 29 Dec 2005 21:06:55 +0000
(21:06 +0000)
http_encoding_api.c
patch
|
blob
|
history
diff --git
a/http_encoding_api.c
b/http_encoding_api.c
index 6c8a048b28d517ff64f07cd3b80603297a6ff85d..c0d1140d4d452f5e0d304caea652959836709c1d 100644
(file)
--- 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 = 0x800
0
- s->stream.avail_out;
*encoded = erealloc_rel(*encoded, *encoded_len + 1);
(*encoded)[*encoded_len] = '\0';
return SUCCESS;