diff options
| author | Simon Tatham <anakin@pobox.com> | 2007-06-21 14:10:01 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2007-06-21 14:10:01 +0000 |
| commit | dfc9234fa55bc93174e057b90c1f665eb8cb39e4 (patch) | |
| tree | 0c90a8bb121c91e9cede5113a47a99b4fad0d483 /inputs/errors.but | |
| parent | 9d14f4577f82230c176ed963cdd7675eb874ee4c (diff) | |
| download | halibut-dfc9234fa55bc93174e057b90c1f665eb8cb39e4.zip halibut-dfc9234fa55bc93174e057b90c1f665eb8cb39e4.tar.gz halibut-dfc9234fa55bc93174e057b90c1f665eb8cb39e4.tar.bz2 halibut-dfc9234fa55bc93174e057b90c1f665eb8cb39e4.tar.xz | |
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.
[originally from svn r7622]
Diffstat (limited to 'inputs/errors.but')
0 files changed, 0 insertions, 0 deletions