mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-28 21:37:50 -04:00
fixes #826
This commit is contained in:
@@ -66,8 +66,8 @@ public class SecPasswordField extends PasswordField {
|
||||
}
|
||||
|
||||
private void growContentIfNeeded() {
|
||||
if (this.length > content.length) {
|
||||
char[] newContent = new char[content.length + GROW_BUFFER_SIZE];
|
||||
if (length > content.length) {
|
||||
char[] newContent = new char[length + GROW_BUFFER_SIZE];
|
||||
System.arraycopy(content, 0, newContent, 0, content.length);
|
||||
swipe();
|
||||
this.content = newContent;
|
||||
|
||||
Reference in New Issue
Block a user