summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/asn_moid.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-04-08 17:45:47 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-04-08 17:45:47 +0000
commit0cc361f3e7700537699c6668b3415d56acb7c3c3 (patch)
treec2cd061f8ecc787b0c53bce2ab85eb554ffd4e18 /crypto/asn1/asn_moid.c
parentbaecb96e8a7d109cfbf816038abea45d1d6c78e3 (diff)
Fix from stable branch.
Diffstat (limited to 'crypto/asn1/asn_moid.c')
-rw-r--r--crypto/asn1/asn_moid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/asn_moid.c b/crypto/asn1/asn_moid.c
index 72cc1210be..9132350f10 100644
--- a/crypto/asn1/asn_moid.c
+++ b/crypto/asn1/asn_moid.c
@@ -149,7 +149,7 @@ static int do_create(char *value, char *name)
if (lntmp == NULL)
return 0;
memcpy(lntmp, ln, p - ln);
- lntmp[p - ln + 1] = 0;
+ lntmp[p - ln] = 0;
oid = OBJ_nid2obj(nid);
oid->ln = lntmp;
}