aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-09-28 20:59:17 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-09-28 20:59:17 +0300
commitfe184efa6c4bddbf1d9e3ce038f92982fda209f1 (patch)
treef8aba08958d0b4d4b4b1eaa48305504a4a4e0aed
parent73897ef5a15ada07806cb3fd2f509a42030a0cee (diff)
downloadlibmicrohttpd-fe184efa6c4bddbf1d9e3ce038f92982fda209f1.tar.gz
libmicrohttpd-fe184efa6c4bddbf1d9e3ce038f92982fda209f1.zip
postprocessor.c: fixed compiler warnings
-rw-r--r--src/microhttpd/postprocessor.c6
1 files changed, 3 insertions, 3 deletions
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,
783 break; 783 break;
784 newline++; 784 newline++;
785 } 785 }
786 if (newline + pp->blen + 4 <= pp->buffer_pos) 786 if (newline + blen + 4 <= pp->buffer_pos)
787 { 787 {
788 /* can check boundary */ 788 /* can check boundary */
789 if (0 != memcmp (&buf[newline + 4], 789 if (0 != memcmp (&buf[newline + 4],
790 boundary, 790 boundary,
791 pp->blen)) 791 blen))
792 { 792 {
793 /* no boundary, "\r\n--" is part of content, skip */ 793 /* no boundary, "\r\n--" is part of content, skip */
794 newline += 4; 794 newline += 4;
@@ -801,7 +801,7 @@ process_value_to_boundary (struct MHD_PostProcessor *pp,
801 pp->skip_rn = RN_Dash; 801 pp->skip_rn = RN_Dash;
802 pp->state = next_state; 802 pp->state = next_state;
803 pp->dash_state = next_dash_state; 803 pp->dash_state = next_dash_state;
804 (*ioffptr) += pp->blen + 4; /* skip boundary as well */ 804 (*ioffptr) += blen + 4; /* skip boundary as well */
805 buf[newline] = '\0'; 805 buf[newline] = '\0';
806 break; 806 break;
807 } 807 }