gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 04/05: postprocessor.c: fixed compiler warn


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 04/05: postprocessor.c: fixed compiler warnings
Date: Thu, 28 Sep 2017 20:00:19 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit fe184efa6c4bddbf1d9e3ce038f92982fda209f1
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Thu Sep 28 20:59:17 2017 +0300

    postprocessor.c: fixed compiler warnings
---
 src/microhttpd/postprocessor.c | 6 +++---
 1 file 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,
             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;
             }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]