From fe184efa6c4bddbf1d9e3ce038f92982fda209f1 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Thu, 28 Sep 2017 20:59:17 +0300 Subject: postprocessor.c: fixed compiler warnings --- src/microhttpd/postprocessor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c index 208686bb..8b710ea1 100644 --- a/src/microhttpd/postprocessor.c +++ b/src/microhttpd/postprocessor.c @@ -783,12 +783,12 @@ process_value_to_boundary (struct MHD_PostProcessor *pp, break; newline++; } - if (newline + pp->blen + 4 <= pp->buffer_pos) + if (newline + blen + 4 <= pp->buffer_pos) { /* can check boundary */ if (0 != memcmp (&buf[newline + 4], boundary, - pp->blen)) + blen)) { /* no boundary, "\r\n--" is part of content, skip */ newline += 4; @@ -801,7 +801,7 @@ process_value_to_boundary (struct MHD_PostProcessor *pp, pp->skip_rn = RN_Dash; pp->state = next_state; pp->dash_state = next_dash_state; - (*ioffptr) += pp->blen + 4; /* skip boundary as well */ + (*ioffptr) += blen + 4; /* skip boundary as well */ buf[newline] = '\0'; break; } -- cgit v1.2.3