Security fixes brought forward from 0.9.7.
[openssl.git] / crypto / asn1 / tasn_prn.c
index fab67ae5ac8418d9abf11ed1d58935ef2a4393b2..719639b511fc74b3e78f4ea4c61747e9921174f2 100644 (file)
@@ -186,7 +186,7 @@ if(*bool == -1) printf("BOOL MISSING\n");
                        char objbuf[80], *ln;
                        ln = OBJ_nid2ln(OBJ_obj2nid(fld));
                        if(!ln) ln = "";
-                       OBJ_obj2txt(objbuf, 80, fld, 1);
+                       OBJ_obj2txt(objbuf, sizeof objbuf, fld, 1);
                        BIO_printf(out, "%*s%s:%s (%s)", indent, "", "OBJECT", ln, objbuf);
                } else {
                        BIO_printf(out, "%*s%s:", indent, "", name);