X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fsyntax-file.c;h=678d2f51fa96b9217f6b172d190d7abf4dfbc01f;hb=5282b76bcbd0501c1227b36e4d451f340388eca5;hp=5bd6fafacf50e6a541e4254926e12df4cb67a9d6;hpb=9f087e7aa4cdff1d5d46d5e188c0017a9d2d0029;p=pspp-builds.git diff --git a/src/language/syntax-file.c b/src/language/syntax-file.c index 5bd6fafa..678d2f51 100644 --- a/src/language/syntax-file.c +++ b/src/language/syntax-file.c @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -99,7 +100,7 @@ read_syntax_file (struct getl_interface *s, do { sfs->ln++; - if (!ds_read_line (line, sfs->syntax_file)) + if (!ds_read_line (line, sfs->syntax_file, SIZE_MAX)) { if (ferror (sfs->syntax_file)) msg (ME, _("Reading `%s': %s."), sfs->fn, strerror (errno)); @@ -110,7 +111,7 @@ read_syntax_file (struct getl_interface *s, while (sfs->ln == 1 && !memcmp (ds_cstr (line), "#!", 2)); /* Echo to listing file, if configured to do so. */ - if (get_echo ()) + if (settings_get_echo ()) tab_output_text (TAB_LEFT | TAB_FIX, ds_cstr (line)); return true;