From cfe708d049a128778b599c9954825d860772b78a Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 8 Jul 2026 19:13:10 +0200 Subject: [PATCH] BUILD: haload: Increase a buffer size so that gcc will stop complaining gcc 16 whines that in human_number(), the calls to snprintf() could lead to a truncated output because the buffer is not big enough. This is not really true, because we always have a limited number of digits, but gcc can't figure that out, so just bump the buffer size from 5 bytes to 8 bytes to make gcc happy. --- src/haload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haload.c b/src/haload.c index d0a644bba..6057d7978 100644 --- a/src/haload.c +++ b/src/haload.c @@ -477,7 +477,7 @@ static inline struct stconn *sc_new_from_hldstream(struct hldstream *hs, unsigne */ static const char *human_number(double x) { - static char str[5]; + static char str[8]; char unit = '.'; if (x < 0) -- 2.47.3