From: Adam C. Emerson Date: Wed, 25 Mar 2026 18:57:58 +0000 (-0400) Subject: rgw: Trivially remove vla from `RGWFormatter_Plain::write_raw_data` X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=39c803d3afe893e47fd73dbebff71ae6453e632b;p=ceph.git rgw: Trivially remove vla from `RGWFormatter_Plain::write_raw_data` Signed-off-by: Adam C. Emerson --- diff --git a/src/rgw/rgw_formats.cc b/src/rgw/rgw_formats.cc index 5b899d99e771..24bf55f8dd5d 100644 --- a/src/rgw/rgw_formats.cc +++ b/src/rgw/rgw_formats.cc @@ -192,9 +192,9 @@ void RGWFormatter_Plain::write_raw_data(const char *data) void RGWFormatter_Plain::write_data(const char *fmt, ...) { -#define LARGE_ENOUGH_LEN 128 + static constexpr auto LARGE_ENOUGH_LEN = 128; int n, size = LARGE_ENOUGH_LEN; - char s[size + 8]; + char s[LARGE_ENOUGH_LEN + 8]; char *p, *np; bool p_on_stack; va_list ap;