java: fix Util.storeBytes

This commit is contained in:
Matthias Ringwald 2020-10-06 17:53:53 +02:00
parent 7ab355f4eb
commit a32d980d48

View File

@ -90,7 +90,7 @@ public class Util {
int bytes_to_copy = Math.min(value.length, len);
System.arraycopy(value, 0, buffer, offset, bytes_to_copy);
for (int i = bytes_to_copy; i < len ; i++){
buffer[i] = 0;
buffer[offset + i] = 0;
}
}