Fix OID config module.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 8 Apr 2007 17:45:03 +0000 (17:45 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 8 Apr 2007 17:45:03 +0000 (17:45 +0000)
crypto/asn1/asn_moid.c

index 72cc1210becdcbe6f7ebaa2e5a4c07a5496a7380..9132350f10780389bf12b800b118601a52c98bf4 100644 (file)
@@ -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;
                }