diff --git a/platform/util-ex/src/com/intellij/credentialStore/OneTimeString.kt b/platform/util-ex/src/com/intellij/credentialStore/OneTimeString.kt index 4eb02bd67e3d..872af1487988 100644 --- a/platform/util-ex/src/com/intellij/credentialStore/OneTimeString.kt +++ b/platform/util-ex/src/com/intellij/credentialStore/OneTimeString.kt @@ -90,7 +90,7 @@ class OneTimeString @JvmOverloads constructor(value: CharArray, offset: Int = 0, fun appendTo(builder: StringBuilder) { consume(false) - builder.append(myChars, myStart, length) + builder.appendRange(myChars, myStart, myStart + length) } }