Skip to content

Commit

Permalink
Amalgamation
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard authored and erkkah committed Aug 2, 2023
1 parent 421000a commit 10a9624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions naett.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 10a9624

Please sign in to comment.