diff options
Diffstat (limited to 'openpgp/src/serialize/sexp.rs')
-rw-r--r-- | openpgp/src/serialize/sexp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/serialize/sexp.rs b/openpgp/src/serialize/sexp.rs index 8d8243a8..8c072ee0 100644 --- a/openpgp/src/serialize/sexp.rs +++ b/openpgp/src/serialize/sexp.rs @@ -37,7 +37,7 @@ impl MarshalInto for Sexp { } fn serialize_into(&self, buf: &mut [u8]) -> Result<usize> { - generic_serialize_into(self, buf) + generic_serialize_into(self, self.serialized_len(), buf) } } @@ -75,7 +75,7 @@ impl MarshalInto for String_ { } fn serialize_into(&self, buf: &mut [u8]) -> Result<usize> { - generic_serialize_into(self, buf) + generic_serialize_into(self, self.serialized_len(), buf) } } |