diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2018-10-11 20:41:55 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2018-10-11 20:41:55 +0700 |
commit | d4f3d5073fea559403e67ea8992abca9dee72641 (patch) | |
tree | bf78b723da1c3800ad951b71593168a696c1842f /crypto/src/openpgp | |
parent | Add missing file entry from previous commit (diff) | |
download | BouncyCastle.NET-ed25519-d4f3d5073fea559403e67ea8992abca9dee72641.tar.xz |
Port PGP utility fix from Java
Diffstat (limited to 'crypto/src/openpgp')
-rw-r--r-- | crypto/src/openpgp/PgpUtilities.cs | 2 |
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); } |