Lines 1-20
Link Here
|
1 |
--- cherokee/handler_cgi_base.c.orig Fri Aug 18 15:21:03 2006 |
1 |
--- cherokee/handler_cgi_base.c.orig Mon Dec 11 11:44:26 2006 |
2 |
+++ cherokee/handler_cgi_base.c Thu Nov 16 00:42:03 2006 |
2 |
+++ cherokee/handler_cgi_base.c Thu Dec 14 10:09:38 2006 |
3 |
@@ -21,6 +21,8 @@ |
3 |
@@ -21,7 +21,8 @@ |
4 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
4 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
5 |
* USA |
5 |
* USA |
6 |
*/ |
6 |
*/ |
|
|
7 |
- |
7 |
+#include <stdlib.h> |
8 |
+#include <stdlib.h> |
8 |
+#include <limits.h> |
9 |
+#include <limits.h> |
9 |
|
|
|
10 |
#include "common-internal.h" |
10 |
#include "common-internal.h" |
11 |
#include "handler_cgi_base.h" |
11 |
#include "handler_cgi_base.h" |
12 |
@@ -578,7 +580,7 @@ |
|
|
13 |
cherokee_buffer_t tmp = CHEROKEE_BUF_INIT; |
14 |
|
15 |
cherokee_buffer_add (&tmp, begin+16, end - (begin+16)); |
16 |
- cgi->content_length = atoll (tmp.buf); |
17 |
+ cgi->content_length = strtoll(tmp.buf, (char **)NULL, 10); |
18 |
cherokee_buffer_mrproper (&tmp); |
19 |
|
12 |
|
20 |
cherokee_buffer_remove_chunk (buffer, begin - buffer->buf, end2 - begin); |
|
|