]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: tree-wide: remove strpcy() from constant strings
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Apr 2023 16:11:39 +0000 (18:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Apr 2023 16:14:28 +0000 (18:14 +0200)
commitfc458ec8aaa488d9abbc4cdc7240d65cfbb0ae28
tree42685516c7f6d4d86292b06f168a5b6b851d2869
parent6d4c0c2ca247eb9e1e0317a080b577661d24a583
CLEANUP: tree-wide: remove strpcy() from constant strings

These ones are genenerally harmless on modern compilers because the
compiler checks them. While gcc optimizes them away without even
referencing strcpy(), clang prefers to call strcpy(). Nevertheless they
prevent from enabling stricter checks so better remove them altogether.
They were all replaced by strlcpy2() and the size of the destination
which is always known there.
src/clock.c
src/frontend.c
src/proto_tcp.c
src/server.c
src/stats.c