various: use CONST_MAX for array allocation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 4 Jun 2022 19:07:27 +0000 (21:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Jun 2022 07:52:52 +0000 (09:52 +0200)
commit89eb3d7c95b8dc3d40471b73699c464994769844
tree49d58ba4e01cd9e25a748a8e473581db9cfc2e3e
parenta5b28b772105ca192aab730c6179722e48999ba3
various: use CONST_MAX for array allocation

IIUC, with MAX() we get a VLA and the size is "decided" at runtime,
even though the result is always the same, but with CONST_MAX() we
get a normal stack variable.
src/shared/logs-show.c
src/test/test-time-util.c