ref: 02e2bb33955ff4347b021210bb2abd5d026d1688
parent: 87a1237efeb848d68d164e5bdb80db98b1b3ed46
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon Oct 28 05:20:07 EDT 2013
rsa2ssh: fix the megashit
--- a/sys/src/cmd/auth/rsa2ssh.c
+++ b/sys/src/cmd/auth/rsa2ssh.c
@@ -22,6 +22,7 @@
fmtinstall('B', mpfmt); fmtinstall('[', encodefmt);+ ssh2 = 0;
comment = "";
ARGBEGIN{@@ -50,7 +51,7 @@
p = putmp2(p, k->pub.ek);
p = putmp2(p, k->pub.n);
- print("ssh-rsa %.*[ %s\n", p-buf, buf, comment);+ print("ssh-rsa %.*[ %s\n", (int)(p-buf), buf, comment); } else { print("%d %.10B %.10B %s\n", mpsignif(k->pub.n), k->pub.ek, k->pub.n, comment);}
--
⑨