Skip to content

Commit b5edfbf

Browse files
committed
fix: add modified buffer size to arg
1 parent fd47650 commit b5edfbf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/cryptlex/lexfloatclient/LexFloatClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,13 @@ public static String GetFloatingClientMetadata(String key) throws LexFloatClient
354354
int status;
355355
if (Platform.isWindows()) {
356356
CharBuffer buffer = CharBuffer.allocate(4096);
357-
status = LexFloatClientNative.GetFloatingClientMetadata(new WString(key), buffer, 256);
357+
status = LexFloatClientNative.GetFloatingClientMetadata(new WString(key), buffer, 4096);
358358
if (LF_OK == status) {
359359
return buffer.toString().trim();
360360
}
361361
} else {
362362
ByteBuffer buffer = ByteBuffer.allocate(4096);
363-
status = LexFloatClientNative.GetFloatingClientMetadata(key, buffer, 256);
363+
status = LexFloatClientNative.GetFloatingClientMetadata(key, buffer, 4096);
364364
if (LF_OK == status) {
365365
return new String(buffer.array(), "UTF-8");
366366
}

0 commit comments

Comments
 (0)