summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--key.c4
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 @@
2 - (bal) Add perl5 check for HP/UX, Removed GNUness from Makefile.in 2 - (bal) Add perl5 check for HP/UX, Removed GNUness from Makefile.in
3 and temporary commented out 'catman-do:' since it is broken. Patches 3 and temporary commented out 'catman-do:' since it is broken. Patches
4 for the first two by Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE> 4 for the first two by Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
5 - OpenBSD CVS Sync
6 - deraadt@cvs.openbsd.org 2001/04/16 08:26:04
7 [key.c]
8 better safe than sorry in later mods; yongari@kt-is.co.kr
5 9
620010416 1020010416
7 - OpenBSD CVS Sync 11 - OpenBSD CVS Sync
@@ -5127,4 +5131,4 @@
5127 - Wrote replacements for strlcpy and mkdtemp 5131 - Wrote replacements for strlcpy and mkdtemp
5128 - Released 1.0pre1 5132 - Released 1.0pre1
5129 5133
5130$Id: ChangeLog,v 1.1130 2001/04/17 17:58:55 mouring Exp $ 5134$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 @@
32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */ 33 */
34#include "includes.h" 34#include "includes.h"
35RCSID("$OpenBSD: key.c,v 1.23 2001/04/05 10:42:50 markus Exp $"); 35RCSID("$OpenBSD: key.c,v 1.24 2001/04/16 08:26:04 deraadt Exp $");
36 36
37#include <openssl/evp.h> 37#include <openssl/evp.h>
38 38
@@ -216,7 +216,7 @@ key_fingerprint_hex(u_char* dgst_raw, size_t dgst_raw_len)
216 char *retval; 216 char *retval;
217 int i; 217 int i;
218 218
219 retval = xmalloc(dgst_raw_len * 3); 219 retval = xmalloc(dgst_raw_len * 3 + 1);
220 retval[0] = '\0'; 220 retval[0] = '\0';
221 for(i = 0; i < dgst_raw_len; i++) { 221 for(i = 0; i < dgst_raw_len; i++) {
222 char hex[4]; 222 char hex[4];