File tree Expand file tree Collapse file tree
src/main/java/com/cryptlex/lexfloatclient Expand file tree Collapse file tree Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments