Skip to content

Commit

Permalink
Fix the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolTomatos committed Nov 26, 2024
1 parent cf825f1 commit 84cd307
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1342,8 +1342,8 @@ void copyPayload(final ByteBuffer payload) {
if (payload == null) {
return;
}
int originalLength = headerBuffer.length();
int toCopy = payload.remaining();
final int originalLength = headerBuffer.length();
final int toCopy = payload.remaining();
headerBuffer.ensureCapacity(toCopy);
payload.get(headerBuffer.array(), originalLength, toCopy);
headerBuffer.setLength(originalLength + toCopy);
Expand Down

0 comments on commit 84cd307

Please sign in to comment.