Update DiskOptimizedClipboard.java

Dieser Commit ist enthalten in:
Jesse Boyd 2019-11-04 19:29:21 +00:00
Ursprung 1e16095cba
Commit b224457464
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -97,9 +97,9 @@ public class DiskOptimizedClipboard extends LinearClipboard implements Closeable
e.printStackTrace();
}
this.braf = new RandomAccessFile(file, "rw");
long volume = (long) getArea() * 2L + (long) HEADER_SIZE;
long fileLength = (long) getVolume() * 2L + (long) HEADER_SIZE;
braf.setLength(0);
braf.setLength(volume);
braf.setLength(fileLength);
init();
// write getLength() etc
byteBuffer.putChar(2, (char) getWidth());