From c49ab6b414d243272da21f868cb3626b5def5a98 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Thu, 12 Oct 2023 14:39:24 +0200 Subject: [PATCH] Review. --- .../java/ch/cyberduck/core/sftp/SSHFingerprintGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh/src/main/java/ch/cyberduck/core/sftp/SSHFingerprintGenerator.java b/ssh/src/main/java/ch/cyberduck/core/sftp/SSHFingerprintGenerator.java index 8b55baa34cd..d720b2f3b5f 100644 --- a/ssh/src/main/java/ch/cyberduck/core/sftp/SSHFingerprintGenerator.java +++ b/ssh/src/main/java/ch/cyberduck/core/sftp/SSHFingerprintGenerator.java @@ -55,7 +55,7 @@ public String fingerprint(final InputStream in) throws BackgroundException { final String undelimited = ChecksumComputeFactory.get(HashAlgorithm.md5).compute(in, new TransferStatus()).hash; final StringBuilder fp = new StringBuilder(undelimited.substring(0, 2)); for(int i = 2; i <= undelimited.length() - 2; i += 2) { - fp.append(":").append(undelimited.substring(i, i + 2)); + fp.append(":").append(undelimited, i, i + 2); } return fp.toString(); }