]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: chunks: ensure that chunk_strcpy() adds a trailing zero
authorWilly Tarreau <w@1wt.eu>
Mon, 4 Jan 2016 19:21:33 +0000 (20:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Jan 2016 12:53:37 +0000 (13:53 +0100)
commit0b6044fa241386d21994e496bc9e29851b5863dc
tree6ced9e274cddd1856e1f31b38356c49a6cc97798
parent6c25e9e83abb3211c093e51a3252790eea7b2028
MINOR: chunks: ensure that chunk_strcpy() adds a trailing zero

Since thus function bears the name of a well-known string function, it
must at least promise compatible semantics. Here it means always adding
the trailing zero so that anyone willing to use chunk->str as a regular
string can do it. Of course the zero is not counted in the chunk's length.
include/common/chunk.h