summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2018-10-22 11:54:04 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2018-10-22 11:54:04 +0700
commitaa5ea8989854f6a55f412d3eae67aede37e14d1a (patch)
treee9674bd220f4754da582a9601d9116d1b84de177
parentInclude public key in EC encoding (diff)
downloadBouncyCastle.NET-ed25519-aa5ea8989854f6a55f412d3eae67aede37e14d1a.tar.xz
Remove unnecessary Clone
-rw-r--r--crypto/src/openpgp/PgpUtilities.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/openpgp/PgpUtilities.cs b/crypto/src/openpgp/PgpUtilities.cs
index 10d1ac398..a3efd591f 100644
--- a/crypto/src/openpgp/PgpUtilities.cs
+++ b/crypto/src/openpgp/PgpUtilities.cs
@@ -367,7 +367,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp
             byte[]		buffer)
         {
             PgpLiteralDataGenerator lData = new PgpLiteralDataGenerator();
-            Stream pOut = lData.Open(output, fileType, file.Name, file.LastWriteTime, Arrays.Clone(buffer));
+            Stream pOut = lData.Open(output, fileType, file.Name, file.LastWriteTime, buffer);
 			PipeFileContents(file, pOut, buffer.Length);
         }