naett.c

Tiny cross-platform HTTP / HTTPS client library in C.
git clone git://git.finwo.net/lib/naett.c
Log | Files | Refs | README | LICENSE

commit 10a9624456829e5f2b4c264e14760301125d12eb
parent 421000a686bbe78ff1ab2592ad9e850c97bec524
Author: Henrik RydgÄrd <hrydgard@gmail.com>
Date:   Tue,  1 Aug 2023 10:39:08 +0200

Amalgamation

Diffstat:
Mnaett.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/naett.c b/naett.c @@ -1445,6 +1445,8 @@ int naettPlatformInitRequest(InternalRequest* req) { } static void* processRequest(void* data) { + const int bufSize = 10240; + char byteBuffer[bufSize]; InternalResponse* res = (InternalResponse*)data; InternalRequest* req = res->request; @@ -1492,9 +1494,7 @@ static void* processRequest(void* data) { goto finally; } - const int bufSize = 10240; jbyteArray buffer = (*env)->NewByteArray(env, bufSize); - char byteBuffer[bufSize]; if (outputStream != NULL) { int bytesRead = 0;