aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-19 20:23:17 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-19 20:23:17 +0200
commit413cf79402ff29690301e886176a154f766c7551 (patch)
treeb65a28c46bf7609289edec33aabfff90be5f52dd
parentccc18a18b671e64eeae4f753f099af114c044979 (diff)
downloadlitheweb-413cf79402ff29690301e886176a154f766c7551.tar.gz
litheweb-413cf79402ff29690301e886176a154f766c7551.tar.bz2
...
-rw-r--r--picohttp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/picohttp.c b/picohttp.c
index 6ecc528..9b04e64 100644
--- a/picohttp.c
+++ b/picohttp.c
@@ -801,8 +801,8 @@ static int picohttpProcessHeaders (
char headername[PICOHTTP_HEADERNAME_MAX_LEN+1] = {0,};
#define PICOHTTP_HEADERVALUE_MAX_LEN 224
char headervalue[PICOHTTP_HEADERVALUE_MAX_LEN+1] = {0,};
- char *hn;
- char *hv;
+ char *hn = headername;
+ char *hv = headervalue;
/* TODO: Add Header handling here */
while( !picohttpIsCRLF(ch) ) {
@@ -1134,7 +1134,7 @@ replay:
if( 0 == mp->req->query.multipartboundary[mp->in_boundary+1] ) {
mp->in_boundary = 0;
/* matched boundary */
- char trail[2] = {0, 0};
+ int trail[2] = {0, 0};
for(int i=0; i<2; i++) {
trail[i] = picohttpGetch(mp->req);
if( 0 > trail[i] )