summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2023-12-20 14:26:47 +0000
committertb <>2023-12-20 14:26:47 +0000
commit5670cdd12c468a5cd84fe16e17e87aa9ef0a2d5b (patch)
tree700436ca99f9deb9e2683d53f3956538ea1f93b4 /src/lib/libc
parente5f75ebda0817555e654280a941bad4dfd170a5f (diff)
downloadopenbsd-5670cdd12c468a5cd84fe16e17e87aa9ef0a2d5b.tar.gz
openbsd-5670cdd12c468a5cd84fe16e17e87aa9ef0a2d5b.tar.bz2
openbsd-5670cdd12c468a5cd84fe16e17e87aa9ef0a2d5b.zip
Use BIO_indent() for indentation in tasn_prn.c
Using a loop to print pieces of a static buffer containing 20 spaces to indent things is just silly. Even sillier is making this buffer const without looking what it's actually used for... There is BIO_indent() or BIO_printf() that can handle "%*s". Add a length check to preserve behavior since BIO_indent() succeeds for negattive indent. However, peak silliness must be how BIO_dump_indent_cb() indents things. That's for another day. ok jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions