summary refs log tree commit diff
path: root/crypto/src/openpgp
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2018-10-11 20:41:55 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2018-10-11 20:41:55 +0700
commitd4f3d5073fea559403e67ea8992abca9dee72641 (patch)
treebf78b723da1c3800ad951b71593168a696c1842f /crypto/src/openpgp
parentAdd missing file entry from previous commit (diff)
downloadBouncyCastle.NET-ed25519-d4f3d5073fea559403e67ea8992abca9dee72641.tar.xz
Port PGP utility fix from Java
Diffstat (limited to 'crypto/src/openpgp')
-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 a3efd591f..10d1ac398 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, buffer);
+            Stream pOut = lData.Open(output, fileType, file.Name, file.LastWriteTime, Arrays.Clone(buffer));
 			PipeFileContents(file, pOut, buffer.Length);
         }