summaryrefslogtreecommitdiff
path: root/Build/source/texk/bibtex8/bibtex-1.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-03-18 08:58:40 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-03-18 08:58:40 +0000
commit167298e9e82e1dd43b0a8e97d30ba5c58e8e98ea (patch)
tree6fa7a472f69fcd147d5c873b3bb237b33a10eeda /Build/source/texk/bibtex8/bibtex-1.c
parent30dd886c5532920b4670260266bf16c1db123f7c (diff)
more bibtex/bibtex8/bibtexu updates and tests
git-svn-id: svn://tug.org/texlive/trunk@17492 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/bibtex8/bibtex-1.c')
-rw-r--r--Build/source/texk/bibtex8/bibtex-1.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/bibtex8/bibtex-1.c b/Build/source/texk/bibtex8/bibtex-1.c
index f2a1b8e6680..a288a313527 100644
--- a/Build/source/texk/bibtex8/bibtex-1.c
+++ b/Build/source/texk/bibtex8/bibtex-1.c
@@ -231,7 +231,7 @@ END
void add_database_cite (CiteNumber_T *new_cite)
BEGIN
check_cite_overflow (*new_cite);
- check_field_overflow (num_fields * (*new_cite));
+ check_field_overflow (num_fields * (*new_cite + 1));
cite_list[*new_cite] = hash_text[cite_loc];
ilk_info[cite_loc] = *new_cite;
ilk_info[lc_cite_loc] = cite_loc;
@@ -2806,8 +2806,15 @@ void check_field_overflow (Integer_T total_fields)
BEGIN
if (total_fields > Max_Fields)
BEGIN
+ field_ptr = Max_Fields;
BIB_XRETALLOC ("field_info", field_info, StrNumber_T,
Max_Fields, Max_Fields + MAX_FIELDS);
+ /* Initialize to |missing|. */
+ while (field_ptr < Max_Fields)
+ BEGIN
+ field_info[field_ptr] = MISSING;
+ INCR (field_ptr);
+ END
END
END
/*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 226 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/