summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/key.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-04-16 08:26:04 +0000
committerderaadt <deraadt@openbsd.org>2001-04-16 08:26:04 +0000
commit532b66b15e42ff3d28234e931664d0b3c496e979 (patch)
tree837bc55f40457090ab9931a157d16c57505f5d1d /usr.bin/ssh/key.c
parentSplit motd and hushlogin checks into seperate functions, helps for portable. (diff)
downloadwireguard-openbsd-532b66b15e42ff3d28234e931664d0b3c496e979.tar.xz
wireguard-openbsd-532b66b15e42ff3d28234e931664d0b3c496e979.zip
better safe than sorry in later mods; yongari@kt-is.co.kr
Diffstat (limited to 'usr.bin/ssh/key.c')
-rw-r--r--usr.bin/ssh/key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/key.c b/usr.bin/ssh/key.c
index 8623fd3054c..fbd9f4efc51 100644
--- a/usr.bin/ssh/key.c
+++ b/usr.bin/ssh/key.c
@@ -32,7 +32,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "includes.h"
-RCSID("$OpenBSD: key.c,v 1.23 2001/04/05 10:42:50 markus Exp $");
+RCSID("$OpenBSD: key.c,v 1.24 2001/04/16 08:26:04 deraadt Exp $");
#include <openssl/evp.h>
@@ -216,7 +216,7 @@ key_fingerprint_hex(u_char* dgst_raw, size_t dgst_raw_len)
char *retval;
int i;
- retval = xmalloc(dgst_raw_len * 3);
+ retval = xmalloc(dgst_raw_len * 3 + 1);
retval[0] = '\0';
for(i = 0; i < dgst_raw_len; i++) {
char hex[4];