The length parameters in mbstowcs and wcstombs are limits on the
_output_ length, not the input length. Adjust accordingly.
This has the side effect of working around what I believe to be a
bug in DJGPP's mbstowcs(), namely that if you give it a string which
exactly fits in the output length _without_ the trailing NUL, then
it will write n-1 characters of the string plus a NUL where I
believe it should write n characters of the string and no NUL.
git-svn-id: svn://svn.tartarus.org/sgt/halibut@7622
cda61777-01e9-0310-a592-
d414129be87e