simon-svn: halibut: simon
tartarus-commits at lists.tartarus.org
tartarus-commits at lists.tartarus.org
Thu Jun 21 15:10:02 BST 2007
SVN root: svn://ixion.tartarus.org/main
Changes by: simon
Revision: 7622
Date: 2007-06-21 15:10:01 +0100 (Thu, 21 Jun 2007)
Log message (8 lines):
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.
Modified files:
U halibut/ustring.c
Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=7622&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/halibut/ustring.c?rev=7622&r1=7621&r2=7622
More information about the tartarus-commits
mailing list