Fixed a bug in fclose as per Dennis Ritchie comments. fclose should not have any side effects. It is supposed to sanitize the buffer structure when it exits. Currently, it left most of the fields w
Fixed a bug in fclose as per Dennis Ritchie comments. fclose should not have any side effects. It is supposed to sanitize the buffer structure when it exits. Currently, it left most of the fields within the buffer structure Non-Zero. This normally does not matter, BUT if fopen/setbuf/fclose/fopen.. the structure returned by the second fopen would already be filled in. This is a lose! Clem
show more ...
|