8355498: [AIX] Adapt code for C++ VLA rule

Reviewed-by: jkern, mdoerr
This commit is contained in:
Suchismith Roy 2025-04-28 08:44:36 +00:00 committed by Martin Doerr
parent db6fa5923c
commit 2447b9812a

View File

@ -72,7 +72,7 @@ enum {
* Get info for requested PID from /proc/<pid>/psinfo file
*/
static bool read_psinfo(const u_longlong_t& pid, psinfo_t& psinfo) {
static size_t BUF_LENGTH = 32 + sizeof(u_longlong_t);
const size_t BUF_LENGTH = 32 + sizeof(u_longlong_t);
FILE* fp;
char buf[BUF_LENGTH];