diff options
-rw-r--r-- | Build/source/texk/bibtexu/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/bibtexu/bibtex-2.c | 17 |
2 files changed, 16 insertions, 8 deletions
diff --git a/Build/source/texk/bibtexu/ChangeLog b/Build/source/texk/bibtexu/ChangeLog index b0f6ef6dae5..b6cff1e0e8b 100644 --- a/Build/source/texk/bibtexu/ChangeLog +++ b/Build/source/texk/bibtexu/ChangeLog @@ -1,3 +1,10 @@ +2012-04-12 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * bibtex-2.c: Do not check whether Glob_Str_Size > Buf_Size, + and Ent_Str_size > Buf_Size, since Buf_Size can be changed + dynamically, whereas Glob_Str_Size and Ent_Str_Size are maximum + values which are constants. + 2012-04-10 Norbert Preining <preining@logic.at> * bibtex-2.c: Do not check whether Glob_Str_Size > Buf_Size, diff --git a/Build/source/texk/bibtexu/bibtex-2.c b/Build/source/texk/bibtexu/bibtex-2.c index 89b03bb9a53..dfa889a7f90 100644 --- a/Build/source/texk/bibtexu/bibtex-2.c +++ b/Build/source/texk/bibtexu/bibtex-2.c @@ -2254,16 +2254,17 @@ BEGIN if (Max_Cites > Max_Strings) bad = 10 * bad + 8; - if (Ent_Str_Size > Buf_Size) - bad = 10 * bad + 9; - /* - ** The following check has been removed because glob_str_size can - ** now dynamically changed, which makes it possible that this test - ** fails without a real problem. + ** The following checks have been removed because + ** Buf_Size can be dynamically changed, whereas + ** Ent_Str_Size and Glob_Str_Size are maximum values + ** which are constants. + ** + ** if (Ent_Str_Size > Buf_Size) + ** bad = 10 * bad + 9; ** - ** if (Glob_Str_Size > Buf_Size) - ** bad = 100 * bad + 11; + ** if (Glob_Str_Size > Buf_Size) + ** bad = 100 * bad + 11; */ /*^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF SECTION 17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ |