diff options
Diffstat (limited to 'openpgp/src/serialize/cert_armored.rs')
-rw-r--r-- | openpgp/src/serialize/cert_armored.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/serialize/cert_armored.rs b/openpgp/src/serialize/cert_armored.rs index 8853d580..a7cf6040 100644 --- a/openpgp/src/serialize/cert_armored.rs +++ b/openpgp/src/serialize/cert_armored.rs @@ -158,11 +158,11 @@ impl<'a> MarshalInto for Encoder<'a> { } fn serialize_into(&self, buf: &mut [u8]) -> Result<usize> { - generic_serialize_into(self, buf) + generic_serialize_into(self, self.serialized_len(), buf) } fn export_into(&self, buf: &mut [u8]) -> Result<usize> { - generic_export_into(self, buf) + generic_export_into(self, self.serialized_len(), buf) } } |