Additional comment changes for reformat of 1.0.2
[openssl.git] / crypto / asn1 / asn_moid.c
index 72cc1210becdcbe6f7ebaa2e5a4c07a5496a7380..87b5579c8c4e842e731fce4fd8fabfb5d411bc49 100644 (file)
@@ -1,5 +1,5 @@
 /* asn_moid.c */
-/* Written by Stephen Henson (shenson@bigfoot.com) for the OpenSSL
+/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
  * project 2001.
  */
 /* ====================================================================
@@ -102,7 +102,8 @@ void ASN1_add_oid_module(void)
        CONF_module_add("oid_section", oid_module_init, oid_module_finish);
        }
 
-/* Create an OID based on a name value pair. Accept two formats.
+/*-
+ * Create an OID based on a name value pair. Accept two formats.
  * shortname = 1.2.3.4
  * shortname = some long name, 1.2.3.4
  */
@@ -149,7 +150,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;
                }