diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-01-29 02:16:47 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-01-29 02:16:47 +0000 |
commit | 7d31f3772cf91ba3d0e138998bd21c22c83fe48d (patch) | |
tree | a7435320a2a8eb7b741b123074aa9ffa33c9d456 /sapi/apache2handler | |
parent | 580c439c6ec99cc9a70abb94aaa4f9823435f1ae (diff) | |
download | php-git-7d31f3772cf91ba3d0e138998bd21c22c83fe48d.tar.gz |
Fixed bug #27037 (fixed possible crash in apache2handler output code).
Diffstat (limited to 'sapi/apache2handler')
-rw-r--r-- | sapi/apache2handler/sapi_apache2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index 756be1c251..f6bc71f61b 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -83,7 +83,7 @@ php_apache_sapi_ub_write(const char *str, uint str_length TSRMLS_DC) r = ctx->r; brigade = ctx->brigade; - copy_str = apr_pmemdup(r->pool, str, str_length + 1); + copy_str = apr_pmemdup(r->pool, str, str_length); bucket = apr_bucket_pool_create(copy_str, str_length, r->pool, r->connection->bucket_alloc); APR_BRIGADE_INSERT_TAIL(brigade, bucket); |