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:
409bb0b
)
- we need a bit more space for the footer too in http_gzencode()
author
Michael Wallner
<mike@php.net>
Tue, 11 Oct 2005 07:49:03 +0000
(07:49 +0000)
committer
Michael Wallner
<mike@php.net>
Tue, 11 Oct 2005 07:49:03 +0000
(07:49 +0000)
http_encoding_api.c
patch
|
blob
|
history
diff --git
a/http_encoding_api.c
b/http_encoding_api.c
index f0328cdabfd4832978b26d0afd83967ba8c561f0..69b6721bdc4df0fb76d9fce2a419052a49d19ef5 100644
(file)
--- a/
http_encoding_api.c
+++ b/
http_encoding_api.c
@@
-120,7
+120,7
@@
inline void http_init_gzencode_buffer(z_stream *Z, const char *data, size_t data
Z->avail_in = data_len;
Z->avail_out = HTTP_GZBUFLEN(data_len) + HTTP_GZSAFPAD - 1;
- *buf_ptr = emalloc(HTTP_GZBUFLEN(data_len) + sizeof(http_gzencode_header));
+ *buf_ptr = emalloc(HTTP_GZBUFLEN(data_len) + sizeof(http_gzencode_header)
+ HTTP_GZSAFPAD
);
memcpy(*buf_ptr, http_gzencode_header, sizeof(http_gzencode_header));
Z->next_out = *buf_ptr + sizeof(http_gzencode_header);