diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-10-18 21:11:44 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-10-18 21:11:44 -0400 |
commit | f6ecd0c296181bf6a2a7f54e3406c846500e8e63 (patch) | |
tree | 17f37f0b034b3df439b2d76a5aa5bd9492a88065 /src/linux/stime.c | |
parent | bff78954995b115e469aadb7636357798978fffd (diff) | |
download | musl-f6ecd0c296181bf6a2a7f54e3406c846500e8e63.tar.gz musl-f6ecd0c296181bf6a2a7f54e3406c846500e8e63.tar.xz musl-f6ecd0c296181bf6a2a7f54e3406c846500e8e63.zip |
fix return value of ungetc when argument is outside unsigned char range
aside from the special value EOF, ungetc is specified to accept and convert values outside the range of unsigned char. conversion takes place automatically as part of assignment when storing into the buffer, but the return value is also required to be the resulting converted value, and this requirement was not satisfied. simplified from patch by Wang Jianjian.
Diffstat (limited to 'src/linux/stime.c')
0 files changed, 0 insertions, 0 deletions