Skip to content

Commit a64d6ae

Browse files
committed
age: armor: Fix AsyncWrite chucked encoding
1 parent d7c727a commit a64d6ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

age/src/primitives/armor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,11 +517,11 @@ impl<W: AsyncWrite> AsyncWrite for ArmoredWriter<W> {
517517
BASE64_STANDARD
518518
.encode_slice(&byte_buf, &mut encoded_buf[..],)
519519
.expect("byte_buf.len() <= BASE64_CHUNK_SIZE_BYTES"),
520-
ARMORED_COLUMNS_PER_LINE
520+
BASE64_CHUNK_SIZE_COLUMNS
521521
);
522522
*encoded_line = Some(EncodedBytes {
523523
offset: 0,
524-
end: ARMORED_COLUMNS_PER_LINE,
524+
end: BASE64_CHUNK_SIZE_COLUMNS,
525525
});
526526
byte_buf.clear();
527527
}

0 commit comments

Comments
 (0)