
9 Aug
2004
9 Aug
'04
3:50 a.m.
MenTaLguY wrote:
On Sun, 2004-08-08 at 17:44, Bob Jamison wrote:
How about this for a short-term fix: we fstat() the file, get its size, and only preview it if it is smaller than some arbitrary amount.
That seems sensible, although fstat() is not portable (at least not to Windows) ... probably you will need to fseek(..., 0, SEEK_END) and then use ftell() to determine the file's length.
-mental
Ok, now it checks for file size > 1 MB.
Bob