Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mbrtowc: Fix wrong return value when n > UINT_MAX
mbrtowc truncates n to unsigned int when storing its copy. If n > UINT_MAX and the locale is not POSIX, the function will return a wrong value greater than UINT_MAX on the success path.
- Loading branch information