From 45acd85db03bc61e6f2d96f02c0c01a8f8455bf4 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 14 Sep 2009 14:12:36 +0000 Subject: [PATCH] * Patch to sequence handler --- webcit/webcit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webcit/webcit.c b/webcit/webcit.c index 57e3b18e3..25b13ab1f 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -483,7 +483,6 @@ void seconds_since_last_gexp(void) void ReadPostData(void) { - const char *content_end = NULL; int body_start = 0; wcsession *WCC = WC; StrBuf *content = NULL; @@ -513,8 +512,11 @@ void ReadPostData(void) } else if (!strncasecmp(ChrPtr(WCC->Hdr->HR.ContentType), "multipart", 9)) { char *Buf; char *BufEnd; + long len; + + len = StrLength(content); Buf = SmashStrBuf(&content); - content_end = Buf + WCC->Hdr->HR.ContentLength + body_start; + BufEnd = Buf + len; mime_parser(Buf, BufEnd, *upload_handler, NULL, NULL, NULL, 0); free(Buf); } else if (WCC->Hdr->HR.ContentLength > 0) { -- 2.39.2