commit b1f2ddbb0310369519ff0dc2f0aa760323a4f674
parent 7b2ab60e030964b97979635aca2722ff09c5a17e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 27 Sep 2023 15:21:22 +0300
test_put_header_fold: fixed copy-paste error
Diffstat:
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
@@ -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);