diff options
Diffstat (limited to 'Build/source/texk/bibtexu/utils.c')
-rw-r--r-- | Build/source/texk/bibtexu/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/texk/bibtexu/utils.c b/Build/source/texk/bibtexu/utils.c index 32623bd9796..63f7044317a 100644 --- a/Build/source/texk/bibtexu/utils.c +++ b/Build/source/texk/bibtexu/utils.c @@ -1311,6 +1311,20 @@ void set_array_sizes (void) Max_Strings = 4000; Min_Crossrefs = 2; + { + char *expansion = kpse_var_value ("max_strings"); + if (expansion) { + int conf_val = atoi (expansion); + if (conf_val < Max_Strings) + fprintf (stderr, + "%s: Bad value (%ld) in texmf.cnf for max_strings, keeping %ld.\n", + program_invocation_name, (long) conf_val, (long) Max_Strings); + else + Max_Strings = conf_val; + free (expansion); + } + } + if (Flag_big) { Max_Strings = 10000; } |