From 93acbedce8afa8f77478eea30985e89efcdc61d1 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Sun, 13 Aug 2000 17:41:20 +0000 Subject: [PATCH] @ Fixed dbase_add_record. (Sterling) --- ext/dbase/dbase.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/dbase/dbase.c b/ext/dbase/dbase.c index adb3e284d24..8738b4f3b2c 100644 --- a/ext/dbase/dbase.c +++ b/ext/dbase/dbase.c @@ -233,7 +233,7 @@ PHP_FUNCTION(dbase_pack) { /* {{{ proto bool dbase_add_record(int identifier, array data) Adds a record to the database */ PHP_FUNCTION(dbase_add_record) { - pval *dbh_id, *fields, *field; + pval *dbh_id, *fields, **field; dbhead_t *dbh; int dbh_type; @@ -281,7 +281,7 @@ PHP_FUNCTION(dbase_add_record) { RETURN_FALSE; } - tmp = *field; + tmp = **field; zval_copy_ctor(&tmp); convert_to_string(&tmp); sprintf(t_cp, cur_f->db_format, tmp.value.str.val);