]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: Correct logic in cut_crlf()
authorSimon Horman <horms@verge.net.au>
Wed, 13 Feb 2013 08:48:00 +0000 (17:48 +0900)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 Feb 2013 09:52:40 +0000 (10:52 +0100)
commit5269cfb4585ebee9babc628e2fed672c00028743
tree21dfd122619fea6c4b961352916665fa26281f31
parentf825580da885b912aba9d0c5417be95d5282d9ef
BUG/MINOR: Correct logic in cut_crlf()

This corrects what appears to be logic errors in cut_crlf().
I assume that the intention of this function is to truncate a
string at the first cr or lf. However, currently lf are ignored.

Also use '\0' instead of 0 as the null character, a cosmetic change.

Cc: Krzysztof Piotr Oledzki <ole@ans.pl>
Signed-off-by: Simon Horman <horms@verge.net.au>
[WT: this fix may be backported to 1.4 too]
include/common/standard.h