replace: clean-up strlcpy and add note on return value
authorDavid Disseldorp <ddiss@samba.org>
Thu, 26 Mar 2015 11:21:44 +0000 (12:21 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 26 Mar 2015 13:54:20 +0000 (14:54 +0100)
commitd02840a3a4d113e17a4225b0e7b1c893634a31d9
tree5b2d9e6f8739c3ca36eb55e6f35ab15470ef4e87
parent4cc51f905cb5cd80d2e289a124c0fe1630d945b5
replace: clean-up strlcpy and add note on return value

The existing implementation uses single line ifs, making the code hard
to visually parse.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/replace/replace.c