diff options
author | Joey Smith <joey@php.net> | 2001-08-16 23:44:10 +0000 |
---|---|---|
committer | Joey Smith <joey@php.net> | 2001-08-16 23:44:10 +0000 |
commit | c8b294afa353dfc779909fd3edf7b690483e41f9 (patch) | |
tree | 09463bf415de50e8960f5eac4f78b531bb1b1872 /ext/dbase | |
parent | e9da242ed4654d99a909993e6919c37f7fbca9f3 (diff) | |
download | php-git-c8b294afa353dfc779909fd3edf7b690483e41f9.tar.gz |
@- Fix a crash in dbase_replace_record (Patch by robin.marlow@dps-int.com).
This fixes Bug id #11928.
Diffstat (limited to 'ext/dbase')
-rw-r--r-- | ext/dbase/dbase.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dbase/dbase.c b/ext/dbase/dbase.c index b3d16af230..c8dd84ccb6 100644 --- a/ext/dbase/dbase.c +++ b/ext/dbase/dbase.c @@ -321,7 +321,7 @@ PHP_FUNCTION(dbase_add_record) Replaces a record to the database */ PHP_FUNCTION(dbase_replace_record) { - pval *dbh_id, *fields, *field, *recnum; + pval *dbh_id, *fields, **field, *recnum; dbhead_t *dbh; int dbh_type; @@ -368,8 +368,8 @@ PHP_FUNCTION(dbase_replace_record) efree(cp); RETURN_FALSE; } - convert_to_string(field); - sprintf(t_cp, cur_f->db_format, field->value.str.val); + convert_to_string_ex(field); + sprintf(t_cp, cur_f->db_format, Z_STRVAL_PP(field)); t_cp += cur_f->db_flen; } |