From 82f4c1c0b4160672467e5eceea4c6f7a48c9481c Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 28 Oct 2013 09:20:07 +0100 Subject: [PATCH] rsa2ssh: fix the megashit --- sys/src/cmd/auth/rsa2ssh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/src/cmd/auth/rsa2ssh.c b/sys/src/cmd/auth/rsa2ssh.c index 9dc3afc1b..397189502 100644 --- a/sys/src/cmd/auth/rsa2ssh.c +++ b/sys/src/cmd/auth/rsa2ssh.c @@ -22,6 +22,7 @@ main(int argc, char **argv) fmtinstall('B', mpfmt); fmtinstall('[', encodefmt); + ssh2 = 0; comment = ""; ARGBEGIN{ @@ -50,7 +51,7 @@ main(int argc, char **argv) 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); }