]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MEDIUM: standard: get rid of the last strcpy()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 12:49:00 +0000 (14:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 13:52:48 +0000 (15:52 +0200)
commit94ef3f3115bc2ce213063f69bfca11c2a4f18396
treecd243f550ec810cd6e0a2cfffd4e2081c630e400
parent0e82b92a970a71e099cea1ea395113ecd4f9852f
BUILD/MEDIUM: standard: get rid of the last strcpy()

OpenBSD complains about our use of strcpy() in standard.c. The checks
were OK and we didn't fall into the category of "almost always misused",
but it's very simple to fix it so better do it before a problem happens.

src/standard.o(.text+0x26ab): In function `str2sa_range':
src/standard.c:718: warning: strcpy() is almost always misused, please use strlcpy()
src/standard.c