]> granicus.if.org Git - php/commitdiff
Verified and fixed bug 6852 #2. Now memo fields are 10 butes long, not 9.
authorVlad Krupin <vlad@php.net>
Mon, 31 Dec 2001 10:23:30 +0000 (10:23 +0000)
committerVlad Krupin <vlad@php.net>
Mon, 31 Dec 2001 10:23:30 +0000 (10:23 +0000)
That does not seem to affect how the code works except when creating a new
structure, in which case 'M' fields used to get created with size 9.
@Fixed bug 6852 #2. Mem fields are now 10 bytesin size, not 9. (Vlad)

ext/dbase/dbase.c

index 8f7ab607035ded11f44cfa21cb9d0057f479a6bd..002a0c3e18b3225e23b5842ddcb38f517436029e 100644 (file)
@@ -745,7 +745,7 @@ PHP_FUNCTION(dbase_create)
                        cur_f->db_flen = 1;
                        break;
                case 'M':
-                       cur_f->db_flen = 9;
+                       cur_f->db_flen = 10;
                        dbh->db_dbt = DBH_TYPE_MEMO;
                        /* should create the memo file here, probably */
                        break;