From 459d1913bfd4a444d8a778bc819f026d2dc10ec0 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Tue, 17 Apr 2001 18:06:14 +0000 Subject: [PATCH] - deraadt@cvs.openbsd.org 2001/04/16 08:26:04 [key.c] better safe than sorry in later mods; yongari@kt-is.co.kr --- ChangeLog | 6 +++++- key.c | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 667d6160c..d00ebef7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ - (bal) Add perl5 check for HP/UX, Removed GNUness from Makefile.in and temporary commented out 'catman-do:' since it is broken. Patches for the first two by Lutz Jaenicke + - OpenBSD CVS Sync + - deraadt@cvs.openbsd.org 2001/04/16 08:26:04 + [key.c] + better safe than sorry in later mods; yongari@kt-is.co.kr 20010416 - OpenBSD CVS Sync @@ -5127,4 +5131,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1130 2001/04/17 17:58:55 mouring Exp $ +$Id: ChangeLog,v 1.1131 2001/04/17 18:06:14 mouring Exp $ diff --git a/key.c b/key.c index 8623fd305..fbd9f4efc 100644 --- a/key.c +++ b/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 @@ -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];