]> git.kaiwu.me - haproxy.git/commit
BUILD/MEDIUM: http: remove calls to sprintf()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 13:27:14 +0000 (15:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 13:52:48 +0000 (15:52 +0200)
commite9187f8263ec1aa93379479c0454981746a543a8
tree32bc0fbaa63fe49221dedc0e1218552ed716050f
parenta1dab55e1e325317e0264a642238e82608a14298
BUILD/MEDIUM: http: remove calls to sprintf()

OpenBSD complains about this use of sprintf() :

src/proto_http.o(.text+0xb0e6): In function `http_process_request':
src/proto_http.c:4127: warning: sprintf() is often misused, please use snprintf()

Here there's no risk as the strings are way shorter than the buffer size
but let's fix it anyway.
src/proto_http.c