Although I didn't look at the wcslcpy/wcslcat code carefully, it clearly has problems similar to those of the strlcpy/strlcat code and should be fixed the same way. Nobody uses these functions, so their performance does not matter. Certainly we should not try to optimize them. The manual could use a bit of fixup; please see attached.