From f5f684952c22cb724436b6c08da8c4a259412fb4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Feb 2026 12:05:34 +0000 Subject: [PATCH] Increase node_log buffer to fix -Wformat-truncation warnings The node_log macro used a 256-byte buffer for formatting log details, but bucket names (64B) and keys (512B) can together require up to ~606 bytes, causing gcc to emit format-truncation warnings. Increase the buffer to 1024 bytes to accommodate the worst case. https://claude.ai/code/session_01HXKM6UjE3G4A29zTc7gFxo --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 311abad..18de29f 100644 --- a/src/server.c +++ b/src/server.c @@ -64,7 +64,7 @@ static void node_log_impl(ServerState *state, const char *event, const char *det } #define node_log(state, event, fmt, ...) do { \ - char _detail[256]; \ + char _detail[1024]; \ snprintf(_detail, sizeof(_detail), fmt, ##__VA_ARGS__); \ node_log_impl(state, event, _detail); \ } while (0)