summaryrefslogtreecommitdiff
path: root/Build/source/texk/bibtex-x/bibtex.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/bibtex-x/bibtex.c')
-rw-r--r--Build/source/texk/bibtex-x/bibtex.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/texk/bibtex-x/bibtex.c b/Build/source/texk/bibtex-x/bibtex.c
index 8dc83fdf392..eec2cda29aa 100644
--- a/Build/source/texk/bibtex-x/bibtex.c
+++ b/Build/source/texk/bibtex-x/bibtex.c
@@ -103,6 +103,7 @@
#ifdef KPATHSEA
#include <kpathsea/config.h>
#include <kpathsea/progname.h>
+#include <kpathsea/variable.h>
#endif
#include "sysdep.h"
@@ -228,6 +229,9 @@ int main (int argc, char **argv)
BEGIN
extern Integer8_T history;
int exit_status;
+#ifdef KPATHSEA
+ char *mpl;
+#endif
/*-
**------------------------------------------------------------------------
@@ -262,6 +266,11 @@ BEGIN
#ifdef KPATHSEA
kpse_set_program_name(argv[0], PROGNAME);
+ mpl = kpse_var_value("max_print_line");
+ if (mpl)
+ max_print_line = atoi(mpl);
+ else
+ max_print_line = 79; /* default */
#endif
history = SPOTLESS;