Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mbstowcs_nonfatal() that might convert string shorter than desired
The "n" parameter of mbstowcs_nonfatal() refers to number of wide characters. But the logic seemed to be confused with "n" parameter of mbrtowc() (the number of bytes). Signed-off-by: Kang-Che Sung <[email protected]>
- Loading branch information