]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MEDIUM: checks: get rid of sprintf()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 13:04:54 +0000 (15:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 13:52:48 +0000 (15:52 +0200)
commita1dab55e1e325317e0264a642238e82608a14298
tree65c65019b844edd6a83f70cdc20ff4698e436125
parent348acfe272e099ffaf7d1c6022eaaf19f1d211a7
BUILD/MEDIUM: checks: get rid of sprintf()

OpenBSD complains about our use of sprintf() here :

src/checks.o(.text+0x44db): In function `process_chk':
src/checks.c:766: warning: sprintf() is often misused, please use snprintf()

This case was not really clean since the introduction of global.node BTW.
Better change the API to support a size argument in the function and enforce
the limit.
src/checks.c