]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MINOR: ssl: remove one call to sprintf()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 16:05:41 +0000 (18:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 16:05:41 +0000 (18:05 +0200)
commitb75d692ca6cc61a99e355203c21eaf2e39b3c3cd
treea6d188147d53f06087c5e4605927439d962e8190
parent9ece05f590e9ce9a9e276652b1ec1f3c08ce8d25
BUILD/MINOR: ssl: remove one call to sprintf()

Lukas reported another OpenBSD complaint about this use of sprintf() that
I missed :

src/ssl_sock.o(.text+0x2a79): In function `bind_parse_crt':
src/ssl_sock.c:3015: warning: sprintf() is often misused, please use snprintf()

This one was even easier to handle. Note that some of these calls could
be simplified by checking the snprintf output size instead of doing the
preliminary size computation.
src/ssl_sock.c