replace: Don't run over dst in strlcat
authorVolker Lendecke <vl@samba.org>
Thu, 28 Nov 2013 08:33:59 +0000 (09:33 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Thu, 28 Nov 2013 11:33:10 +0000 (12:33 +0100)
commitbc72eb376c08028709458890cda858c4463fd2d9
tree61368328d60cbb1882dacc885a0aa47dec36bc6d
parent4e186e5754e08fc4b1a1c3eb6799fd1f26a38da1
replace: Don't run over dst in strlcat

If "d" is not 0-terminated, the pure strlen will read beyond the end
of the given bufsize. strlcat in libbsd deliberately avoids this, so we
should do the same.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>