diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-06-02 16:21:47 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-06-02 16:21:47 -0400 |
commit | 8fba4458afb7304b32ca887e4a3990c6029131f9 (patch) | |
tree | 26b883a992a8bc2a8617fc76cb298c7819f19c7a /src/signal/microblaze | |
parent | 76f440cff73878a7359e944618a7722dfd23bdec (diff) | |
download | musl-8fba4458afb7304b32ca887e4a3990c6029131f9.tar.gz |
fix incorrect end pointer in some cases when wcsrtombs stops early
when wcsrtombs stopped due to hitting zero remaining space in the
output buffer, it was wrongly clearing the position pointer as if it
had completed the conversion successfully.
this commit rearranges the code somewhat to make a clear separation
between the cases of ending due to running out of output buffer space,
and ending due to reaching the end of input or an illegal sequence in
the input. the new branches have been arranged with the hope of
optimizing more common cases, too.
Diffstat (limited to 'src/signal/microblaze')
0 files changed, 0 insertions, 0 deletions