format::ssh: close base64 encoder at right moment otherwise the padding will be written after the comment.
1 files changed, 1 insertions(+), 1 deletions(-) M format/ssh/key.ha
M format/ssh/key.ha => format/ssh/key.ha +1 -1
@@ 107,8 107,8 @@ export fn encode_pubkey(sink: io::handle, key: const *key) (void | io::error) = export fn encode_pubkeystr(sink: io::handle, key: *key) (void | io::error) = { fmt::fprintf(sink, "{} ", keytype(key))?; let enc = base64::newencoder(&base64::std_encoding, sink); defer io::close(&enc)!; encode_pubkey(&enc, key)?; io::close(&enc)!; if (key.comment != "") { fmt::fprintf(sink, " {}", key.comment)?; };