aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl')
-rw-r--r--src/testcurl/test_put_header_fold.c6
1 files 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)
515 515
516 /* Avoid libcurl magic numbers */ 516 /* Avoid libcurl magic numbers */
517#ifdef CURL_READFUNC_PAUSE 517#ifdef CURL_READFUNC_PAUSE
518 if (CURL_READFUNC_ABORT == to_fill) 518 if (CURL_READFUNC_PAUSE == to_fill)
519 to_fill -= 2; 519 to_fill = (CURL_READFUNC_PAUSE - 2);
520#endif /* CURL_READFUNC_PAUSE */ 520#endif /* CURL_READFUNC_PAUSE */
521#ifdef CURL_READFUNC_ABORT 521#ifdef CURL_READFUNC_ABORT
522 if (CURL_READFUNC_ABORT == to_fill) 522 if (CURL_READFUNC_ABORT == to_fill)
523 --to_fill; 523 to_fill = (CURL_READFUNC_ABORT - 1);
524#endif /* CURL_READFUNC_ABORT */ 524#endif /* CURL_READFUNC_ABORT */
525 525
526 memcpy (stream, put_data + cbc->up_pos, to_fill); 526 memcpy (stream, put_data + cbc->up_pos, to_fill);