cvs: php4 /ext/dbase dbase.c
| From: | Vlad Krupin | Date: | Mon, 31 Dec 2001 09:13:08 +0000 |
| Subject: | cvs: php4 /ext/dbase dbase.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8878@lists.php.net to get a copy of this message | ||
vlad Mon Dec 31 04:13:08 2001 EDT
Modified files:
/php4/ext/dbase dbase.c
Log:
Verified and fixed bug 6852 #1. No more null byte after terminating 0x0D.
Verified that the problem is real when creating new files and writing
a record. Both fixed and old versions seem to be able to somehow read
and write already existing files properly though.
@Fixed bug 6852 #1. No more null byte after terminating 0x0D. (Vlad)
Index: php4/ext/dbase/dbase.c
diff -u php4/ext/dbase/dbase.c:1.54 php4/ext/dbase/dbase.c:1.55
--- php4/ext/dbase/dbase.c:1.54 Thu Dec 13 23:22:01 2001
+++ php4/ext/dbase/dbase.c Mon Dec 31 04:13:08 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dbase.c,v 1.54 2001/12/14 04:22:01 vlad Exp $ */
+/* $Id: dbase.c,v 1.55 2001/12/31 09:13:08 vlad Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -684,7 +684,7 @@
strcpy(dbh->db_date, "19930818");
dbh->db_records = 0;
dbh->db_nfields = num_fields;
- dbh->db_hlen = sizeof(struct dbf_dhead) + 2 + num_fields * sizeof(struct dbf_dfield);
+ dbh->db_hlen = sizeof(struct dbf_dhead) + 1 + num_fields * sizeof(struct dbf_dfield);
rlen = 1;
/**