Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
locale.c: Add check that strxfrm didn't fail
The code failed to take into account that strxfrm() can fail for reasons besides buffer length. It does not return errors, and the only way to check is to set errno to 0 beforehand, and check that it is still 0 afterwards.
- Loading branch information
1 parent
020fff6
commit e2f4172
Showing
1 changed file
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters