Skip to content

Commit fd47650

Browse files
committed
fix: buffer size
1 parent ba7c88f commit fd47650

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
@@ -353,13 +353,13 @@ public static String GetHostLicenseMetadata(String key) throws LexFloatClientExc
353353
public static String GetFloatingClientMetadata(String key) throws LexFloatClientException, UnsupportedEncodingException {
354354
int status;
355355
if (Platform.isWindows()) {
356-
CharBuffer buffer = CharBuffer.allocate(256);
356+
CharBuffer buffer = CharBuffer.allocate(4096);
357357
status = LexFloatClientNative.GetFloatingClientMetadata(new WString(key), buffer, 256);
358358
if (LF_OK == status) {
359359
return buffer.toString().trim();
360360
}
361361
} else {
362-
ByteBuffer buffer = ByteBuffer.allocate(256);
362+
ByteBuffer buffer = ByteBuffer.allocate(4096);
363363
status = LexFloatClientNative.GetFloatingClientMetadata(key, buffer, 256);
364364
if (LF_OK == status) {
365365
return new String(buffer.array(), "UTF-8");

0 commit comments

Comments
 (0)