summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-16 14:00:02 +0200
committerAnatol Belski <ab@php.net>2014-08-16 14:00:02 +0200
commit1169de3e61975fe00fbf4768318eb095f22c63ec (patch)
treecc8e005c3fb17572f89305339239c5a4db69b0b1 /main
parentb7e7a895414bd1821686932d57949f1ad0693900 (diff)
downloadphp-git-1169de3e61975fe00fbf4768318eb095f22c63ec.tar.gz
fix some cases with fast zpp
Diffstat (limited to 'main')
-rw-r--r--main/rfc1867.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index a56777dd79..4c0f2adbf3 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -611,9 +611,9 @@ static void *php_ap_memstr(char *haystack, int haystacklen, char *needle, int ne
}
/* read until a boundary condition */
-static int multipart_buffer_read(multipart_buffer *self, char *buf, int bytes, int *end TSRMLS_DC)
+static int multipart_buffer_read(multipart_buffer *self, char *buf, php_size_t bytes, int *end TSRMLS_DC)
{
- int len, max;
+ php_size_t len, max;
char *bound;
/* fill buffer if needed */
@@ -657,7 +657,7 @@ static int multipart_buffer_read(multipart_buffer *self, char *buf, int bytes, i
XXX: this is horrible memory-usage-wise, but we only expect
to do this on small pieces of form data.
*/
-static char *multipart_buffer_read_body(multipart_buffer *self, unsigned int *len TSRMLS_DC)
+static char *multipart_buffer_read_body(multipart_buffer *self, php_size_t *len TSRMLS_DC)
{
char buf[FILLUNIT], *out=NULL;
int total_bytes=0, read_bytes=0;