diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-17 18:06:14 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-17 18:06:14 +0000 |
commit | 459d1913bfd4a444d8a778bc819f026d2dc10ec0 (patch) | |
tree | 6befc05110dabdb5fca60b836f5196f78a86ed8d | |
parent | 04eeadea1d1cd1ba7cce5cc927fa5e7f52771ad3 (diff) |
- deraadt@cvs.openbsd.org 2001/04/16 08:26:04
[key.c]
better safe than sorry in later mods; yongari@kt-is.co.kr
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | key.c | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -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 | ||
6 | 20010416 | 10 | 20010416 |
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 $ |
@@ -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" |
35 | RCSID("$OpenBSD: key.c,v 1.23 2001/04/05 10:42:50 markus Exp $"); | 35 | RCSID("$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]; |