Module Name: src
Committed By: agc
Date: Wed Oct 6 10:12:36 UTC 2010
Modified Files:
src/crypto/external/bsd/netpgp/dist/src/pgp2ssh: main.c
Log Message:
fix an off-by-two error when printing out the received key
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c
diff -u src/crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c:1.1 src/crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c:1.2
--- src/crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c:1.1 Mon Sep 6 18:16:52 2010
+++ src/crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c Wed Oct 6 10:12:36 2010
@@ -96,7 +96,7 @@
/* btoa */
ascc = b64encode(key, keyc, asc, sizeof(asc), 0xffffffff);
/* write to .ssh/id_c0596823.pub */
- printf("ssh-rsa %.*s %s\n", ascc - 2, asc, cp);
+ printf("ssh-rsa %.*s %s\n", ascc, asc, cp);
}
exit((ok) ? EXIT_SUCCESS : EXIT_FAILURE);
}