diff options
author | 2001-04-16 08:26:04 +0000 | |
---|---|---|
committer | 2001-04-16 08:26:04 +0000 | |
commit | 532b66b15e42ff3d28234e931664d0b3c496e979 (patch) | |
tree | 837bc55f40457090ab9931a157d16c57505f5d1d /usr.bin/ssh/key.c | |
parent | Split motd and hushlogin checks into seperate functions, helps for portable. (diff) | |
download | wireguard-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.c | 4 |
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]; |