From 3848a93d14f6732ec375ccc846e2d531f6150ba9 Mon Sep 17 00:00:00 2001 From: Oleg Koretsky <test.radiokot@gmail.com> Date: Wed, 4 Sep 2019 13:36:01 +0300 Subject: [PATCH] SecureCharArrayWriter cleanup --- .../kotlin/org/tokend/wallet/utils/SecureCharArrayWriter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/org/tokend/wallet/utils/SecureCharArrayWriter.kt b/src/main/kotlin/org/tokend/wallet/utils/SecureCharArrayWriter.kt index 18d47d4..57e09a0 100644 --- a/src/main/kotlin/org/tokend/wallet/utils/SecureCharArrayWriter.kt +++ b/src/main/kotlin/org/tokend/wallet/utils/SecureCharArrayWriter.kt @@ -72,8 +72,8 @@ class SecureCharArrayWriter(initialSize: Int) : CharArrayWriter(initialSize) { * Erases the buffer and resets chars count to 0. */ fun erase() { - super.close() + close() buf.erase() - count = 0 + reset() } } \ No newline at end of file