Thread View: NET.v7bugs
1 messages
1 total messages
Started by duketrt
Wed, 13 Aug 1980 09:48
col
Author: duketrt
Date: Wed, 13 Aug 1980 09:48
Date: Wed, 13 Aug 1980 09:48
11 lines
631 bytes
631 bytes
The buffer-flush bug in col(1) that was mentioned in previous news is due to using an automatic (local) variable for buffering stdout: char fbuff[BUFSIZ]; should be changed to static char fbuff[BUFSIZ]; (exit() also works since main() will not return before flushing.) Col(1) is just one of several V7 programs with this flaw. In the Duke version of stdio one can bypass the problem with setbuf(stdout, SYSBUF); where SYSBUF is a flag indicating buffering is desired.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads