diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-07-20 05:13:24 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-07-20 05:13:24 +0000 |
commit | c2107fa6002db504bcc92d43a6760ae386b7abd0 (patch) | |
tree | 530c85f046d4c815c6bf9f83b1bdc69bbfa31110 /packet-atalk.c | |
parent | f1ade8dc6e8b2ff27d283b543627fc0a05304d5a (diff) |
In the BSD standard I/O library, there's a flag in a FILE structure
that's set whenever we encounter an EOF; if that flag is set, all
subsequent reads return an EOF indication. I.e., end-of-file is sticky.
This means that the stuff to continue reading a capture file, if we're
updating the display as the capture progresses, doesn't work - it gets
stuck at the point where the first read finished.
To clear that flag, we must do an "fseek()"; we do one that doesn't move
the seek pointer.
When updating the display as a capture progresses, do
"init_col_widths()" only when we first open the capture file; there's no
need to do it every time we read from the file - the column widths never
get smaller, they can only get bigger or stay the same.
svn path=/trunk/; revision=370
Diffstat (limited to 'packet-atalk.c')
0 files changed, 0 insertions, 0 deletions