Hi, Here's a patch to read correctly dbase III files. I seem not to have any III+ files around to test it, but it should be ok in that case too.
The idea is that instead of skipping the \r char (and eventually, the null character after it) after the header to get to the data, we can seek straight to the data using the information for header length: (wrapped) --- dbview-1.0.3/db_dump.c +++ dbview-1.0.3/db_dump.c @@ -268,7 +268,7 @@ } stack_field(fld); } - fseek(dbfile, 1, SEEK_CUR); /* read the silly little \r 0x0d character */ + fseek(dbfile, dbhead.header, SEEK_SET); /* seek to the data records start */ return; } Thanks for considering, dam -- Damyan Ivanov Modular Software Systems [EMAIL PROTECTED] phone +359(2)928-2611, 929-3993 fax +359(2)920-0994 mobile +359(88)856-6067 [EMAIL PROTECTED]/Gaim
signature.asc
Description: OpenPGP digital signature