commit | 416d1c7a711807384cc21a18163475cf757bbcb5 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Wed Feb 10 19:10:34 2016 -0500 |
committer | Rich Felker <dalias@aerifal.cx> | Wed Feb 10 19:10:34 2016 -0500 |
tree | 8a31270eb7640693929a0d4447e42e34f83cb687 | |
parent | 5a6e8d098abfef67028e6c3edbac39e0bbaf8bd8 [diff] |
fix line-buffered flush omission for odd usage of putc-family functions as specified, the int argument providing the character to write is converted to type unsigned char. for the actual write to buffer, conversion happened implicitly via the assignment operator; however, the logic to check whether the argument was a newline used the original int value. thus usage such as putchar('\n'+0x100) failed to produce a flush.