mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
cast first
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901496 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -252,7 +252,7 @@ static int lua_read_body(request_rec *r, const char **rbuf, apr_off_t *size,
|
|||||||
if (maxsize != 0 && length > maxsize) {
|
if (maxsize != 0 && length > maxsize) {
|
||||||
return APR_EINCOMPLETE; /* Only room for incomplete data chunk :( */
|
return APR_EINCOMPLETE; /* Only room for incomplete data chunk :( */
|
||||||
}
|
}
|
||||||
*rbuf = (const char *) apr_pcalloc(r->pool, (apr_size_t) (length + 1));
|
*rbuf = (const char *) apr_pcalloc(r->pool, (apr_size_t) (length) + 1);
|
||||||
while ((rpos < length)
|
while ((rpos < length)
|
||||||
&& (len_read = ap_get_client_block(r, (char *) *rbuf + rpos,
|
&& (len_read = ap_get_client_block(r, (char *) *rbuf + rpos,
|
||||||
length - rpos)) > 0) {
|
length - rpos)) > 0) {
|
||||||
|
Reference in New Issue
Block a user