Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/pgp2ssh fix an off-by-tw...
details: https://anonhg.NetBSD.org/src/rev/2dae9fc1168f
branches: trunk
changeset: 757950:2dae9fc1168f
user: agc <agc%NetBSD.org@localhost>
date: Wed Oct 06 10:12:36 2010 +0000
description:
fix an off-by-two error when printing out the received key
diffstat:
crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r a903b6a8a3a1 -r 2dae9fc1168f crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c
--- a/crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c Wed Oct 06 09:58:22 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/pgp2ssh/main.c Wed Oct 06 10:12:36 2010 +0000
@@ -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);
}
Home |
Main Index |
Thread Index |
Old Index