]> git.kaiwu.me - haproxy.git/commit
BUILD: haload: Increase a buffer size so that gcc will stop complaining master
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 8 Jul 2026 17:13:10 +0000 (19:13 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 8 Jul 2026 17:11:17 +0000 (19:11 +0200)
commitcfe708d049a128778b599c9954825d860772b78a
treedffd1d02785ecd5a75105f790df5e0759cf0b6cd
parentcaaacb4fc17ef45eaa55a993d0cb5d1c8b4ad724
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