"Jumbo" update for crypto/modes:
[openssl.git] / crypto / asn1 / asn_moid.c
index 72cc1210becdcbe6f7ebaa2e5a4c07a5496a7380..1ea6a5924838bcfd702153472a916d7941338eb7 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.
  */
 /* ====================================================================
@@ -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;
                }