diff options
author | ed <ed@FreeBSD.org> | 2010-01-19 19:53:05 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-01-19 19:53:05 +0000 |
commit | 7848a5349f855e84d678e5dce37385b1e3ca92e8 (patch) | |
tree | 75629d8be62fdd6acf821d349d5568478e784ee1 /usr.bin/unifdef/unifdef.c | |
parent | 6852acc871c80b0a9a030cfc09767707a9bc2bb3 (diff) | |
download | FreeBSD-src-7848a5349f855e84d678e5dce37385b1e3ca92e8.zip FreeBSD-src-7848a5349f855e84d678e5dce37385b1e3ca92e8.tar.gz |
Make last(1) display the full log file.
I must have misread when I ported the original last(1) source code.
Instead of only processing the last 1024 entries, it reads them in in
chucks of 1024 entries at a time.
Unfortunately we cannot walk through the log file in reverse order,
which means we have to allocate a piece of memory to hold all the
entries. Call realloc() for each 128 entries we read.
Reported by: Andrzej Tobola <ato iem pw edu pl>
Diffstat (limited to 'usr.bin/unifdef/unifdef.c')
0 files changed, 0 insertions, 0 deletions