From 75404d736e59073346189eb9507c2fb6003473f3 Mon Sep 17 00:00:00 2001 From: Huzaif Mushtaq Mir Date: Wed, 15 Apr 2026 15:27:16 +0530 Subject: [PATCH] chore: increase license metadata buffer size to 4096 --- src/main/java/com/cryptlex/lexactivator/LexActivator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/cryptlex/lexactivator/LexActivator.java b/src/main/java/com/cryptlex/lexactivator/LexActivator.java index aa63f66..025c39c 100644 --- a/src/main/java/com/cryptlex/lexactivator/LexActivator.java +++ b/src/main/java/com/cryptlex/lexactivator/LexActivator.java @@ -750,14 +750,14 @@ public static FeatureEntitlement GetFeatureEntitlement(String featureName) throw public static String GetLicenseMetadata(String key) throws LexActivatorException, UnsupportedEncodingException { int status; if (Platform.isWindows()) { - CharBuffer buffer = CharBuffer.allocate(256); - status = LexActivatorNative.GetLicenseMetadata(new WString(key), buffer, 256); + CharBuffer buffer = CharBuffer.allocate(4096); + status = LexActivatorNative.GetLicenseMetadata(new WString(key), buffer, 4096); if (LA_OK == status) { return buffer.toString().trim(); } } else { - ByteBuffer buffer = ByteBuffer.allocate(256); - status = LexActivatorNative.GetLicenseMetadata(key, buffer, 256); + ByteBuffer buffer = ByteBuffer.allocate(4096); + status = LexActivatorNative.GetLicenseMetadata(key, buffer, 4096); if (LA_OK == status) { return new String(buffer.array(), "UTF-8").trim(); }