mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
fixed crc length bug
This commit is contained in:
committed by
Andreas Shimokawa
parent
b78239e7be
commit
fea4694cec
@@ -201,7 +201,7 @@ public class FilePutRequest extends FossilRequest {
|
|||||||
|
|
||||||
CRC32C crc = new CRC32C();
|
CRC32C crc = new CRC32C();
|
||||||
|
|
||||||
crc.update(file,0,data.length);
|
crc.update(file,0,file.length);
|
||||||
buffer.putInt((int) crc.getValue());
|
buffer.putInt((int) crc.getValue());
|
||||||
|
|
||||||
byte[] data = buffer.array();
|
byte[] data = buffer.array();
|
||||||
|
Reference in New Issue
Block a user