shithub: riscv

Download patch

ref: 82f4c1c0b4160672467e5eceea4c6f7a48c9481c
parent: 8c9e7ded1758daabd43d35ea3e141cef4d914604
author: cinap_lenrek <[email protected]>
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);
 	}