summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-17 18:06:14 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-17 18:06:14 +0000
commit459d1913bfd4a444d8a778bc819f026d2dc10ec0 (patch)
tree6befc05110dabdb5fca60b836f5196f78a86ed8d /key.c
parent04eeadea1d1cd1ba7cce5cc927fa5e7f52771ad3 (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
Diffstat (limited to 'key.c')
-rw-r--r--key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/key.c b/key.c
index 8623fd30..fbd9f4ef 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 <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];