diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2006-01-09 01:09:55 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2006-01-09 01:09:55 +0000 |
commit | 5750513c004166d4665e63c5a254d85a86efa7c5 (patch) | |
tree | 060798768e0a11b2fdeee5640764c17a2413b462 /LICENCE | |
parent | 223ade988bb31d5e79ea804b2949e3d547d04f76 (diff) | |
download | zsh-5750513c004166d4665e63c5a254d85a86efa7c5.tar.gz zsh-5750513c004166d4665e63c5a254d85a86efa7c5.tar.xz zsh-5750513c004166d4665e63c5a254d85a86efa7c5.zip |
The return value of mbrtowc() is a size_t (unsigned), so don't
assign it to an int and then check if it's < 0, as that won't work on a system where an int is larger than a size_t. Also, the code that handled partial multibyte characters (that were assembled from multiple bytes of a metafied string) was not advancing past all the assembled bytes, nor was it handling the decoding of a '\0' char (it looks like it could have infinite looped in that case).
Diffstat (limited to 'LICENCE')
0 files changed, 0 insertions, 0 deletions