summaryrefslogtreecommitdiff
path: root/sapi/cgi/cgi_main.c
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2013-08-05 12:02:10 +0200
committerMichael Wallner <mike@php.net>2013-08-05 12:02:10 +0200
commit69aed1b61fd87633a4decc75e190abc24848172a (patch)
tree92b93b656c743c6cdee7830eebad2b0533f1c523 /sapi/cgi/cgi_main.c
parent7ca7ea85cd5db249be6348ab10914c39bcae6c69 (diff)
parentd80a91018dc0d7b771cf8517f788a408f3a4f473 (diff)
downloadphp-git-69aed1b61fd87633a4decc75e190abc24848172a.tar.gz
Merge branch 'master' of github.com:/ralflang/php-src
merged pull request #372: >2G uploads by Ralf Lang https://github.com/php/php-src/pull/372
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r--sapi/cgi/cgi_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 4c78fcafec..221b002175 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -508,7 +508,7 @@ static int sapi_cgi_read_post(char *buffer, uint count_bytes TSRMLS_DC)
uint read_bytes = 0;
int tmp_read_bytes;
- count_bytes = MIN(count_bytes, (uint) SG(request_info).content_length - SG(read_post_bytes));
+ count_bytes = MIN(count_bytes, SG(request_info).content_length - SG(read_post_bytes));
while (read_bytes < count_bytes) {
tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes);
if (tmp_read_bytes <= 0) {