From e6957af14fd83aafb24a78fef3fdc134e287aca6 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Wed, 26 Jan 2000 15:22:42 +0000 Subject: Merge with EOM 1.5 date: 2000/01/10 22:02:00; author: angelos; state: Exp; lines: +2 -2 Fix wrong memcpy() --- sbin/isakmpd/apps/certpatch/certpatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/isakmpd/apps') diff --git a/sbin/isakmpd/apps/certpatch/certpatch.c b/sbin/isakmpd/apps/certpatch/certpatch.c index 1aafbc64e21..5b54a71fe09 100644 --- a/sbin/isakmpd/apps/certpatch/certpatch.c +++ b/sbin/isakmpd/apps/certpatch/certpatch.c @@ -1,5 +1,5 @@ -/* $OpenBSD: certpatch.c,v 1.5 2000/01/10 21:58:19 angelos Exp $ */ -/* $EOM: certpatch.c,v 1.4 1999/09/28 21:26:47 angelos Exp $ */ +/* $OpenBSD: certpatch.c,v 1.6 2000/01/26 15:22:41 niklas Exp $ */ +/* $EOM: certpatch.c,v 1.5 2000/01/10 22:02:00 angelos Exp $ */ /* * Copyright (c) 1999 Niels Provos. All rights reserved. @@ -223,8 +223,8 @@ main (int argc, char **argv) else new_id[0] = 0x81; /* IDTYPE_UFQDN */ - new_id[1] = strlen (id); memcpy (new_id + 2, id, strlen(id)); + new_id[1] = strlen (id); #if SSLEAY_VERSION_NUMBER >= 0x00904100L str.length = strlen (id) + 2; str.type = V_ASN1_OCTET_STRING; -- cgit v1.2.3