libtest_convenience_server_reply: fixed chunked testing

This commit is contained in:
Evgeny Grin (Karlson2k)
2024-07-27 21:34:49 +02:00
parent 7e111e1c34
commit 6b4f08e1ec
@@ -411,8 +411,8 @@ chunk_return (void *cls,
if (0 == imax)
return MHD_DCC_action_finish (ctx);
if (imax > space - cc->pos + 1)
imax = space - cc->pos;
if (NULL != space)
imax = space - cc->pos + 1;
if (imax > max)
imax = max;
memcpy (buf,