From: tb Date: Sun, 1 Oct 2023 22:46:21 +0000 (+0000) Subject: Example code tweak: do not hardcode the size of array X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b648a7edbcd84333ecda72115baa9a44363f39e5;p=openbsd Example code tweak: do not hardcode the size of array --- diff --git a/lib/libcrypto/man/X509v3_addr_add_inherit.3 b/lib/libcrypto/man/X509v3_addr_add_inherit.3 index 84332c33481..4b2d150c863 100644 --- a/lib/libcrypto/man/X509v3_addr_add_inherit.3 +++ b/lib/libcrypto/man/X509v3_addr_add_inherit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: X509v3_addr_add_inherit.3,v 1.10 2023/10/01 08:29:12 tb Exp $ +.\" $OpenBSD: X509v3_addr_add_inherit.3,v 1.11 2023/10/01 22:46:21 tb Exp $ .\" .\" Copyright (c) 2023 Theo Buehler .\" @@ -271,7 +271,7 @@ Construct the first extension from RFC 3779, Appendix B. #include #include -const char *prefixes[6] = { +const char *prefixes[] = { "10.0.32/20", "10.0.64/24", "10.1/16", "10.2.48/20", "10.2.64/24", "10.3/16", };