[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/02: test_put_header_fold: fixed copy-paste error
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/02: test_put_header_fold: fixed copy-paste error |
Date: |
Wed, 27 Sep 2023 14:22:30 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit b1f2ddbb0310369519ff0dc2f0aa760323a4f674
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Sep 27 15:21:22 2023 +0300
test_put_header_fold: fixed copy-paste error
---
src/testcurl/test_put_header_fold.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/testcurl/test_put_header_fold.c
b/src/testcurl/test_put_header_fold.c
index 14fa0d73..c6a78b65 100644
--- a/src/testcurl/test_put_header_fold.c
+++ b/src/testcurl/test_put_header_fold.c
@@ -515,12 +515,12 @@ libcurlUploadDataCB (void *stream, size_t item_size,
size_t nitems, void *ctx)
/* Avoid libcurl magic numbers */
#ifdef CURL_READFUNC_PAUSE
- if (CURL_READFUNC_ABORT == to_fill)
- to_fill -= 2;
+ if (CURL_READFUNC_PAUSE == to_fill)
+ to_fill = (CURL_READFUNC_PAUSE - 2);
#endif /* CURL_READFUNC_PAUSE */
#ifdef CURL_READFUNC_ABORT
if (CURL_READFUNC_ABORT == to_fill)
- --to_fill;
+ to_fill = (CURL_READFUNC_ABORT - 1);
#endif /* CURL_READFUNC_ABORT */
memcpy (stream, put_data + cbc->up_pos, to_fill);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.