[billing] Fix Java 11 incompatibility in signWithKey

This commit is contained in:
Dom Eori
2022-03-17 16:51:49 +09:00
parent a186f4ae2e
commit 15aac7e6a3

View File

@@ -73,7 +73,7 @@ public class BillingController {
ByteBuffer sigbytes = ByteBuffer.allocate(15);
sigbytes.order(ByteOrder.LITTLE_ENDIAN);
sigbytes.putInt(0, val);
sigbytes.put(4, keychipId.getBytes());
sigbytes.put(4, keychipId.getBytes(), 0, keychipId.getBytes().length);
Signature sig;
try {