(ds_read_line): Add argument to limit the length of the line to be
[pspp] / src / language / syntax-file.c
index a48dba4a136cad55c78f873b5b395b2cdb60da13..678d2f51fa96b9217f6b172d190d7abf4dfbc01f 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <stdio.h>
 #include <errno.h>
+#include <stdint.h>
 #include <stdlib.h>
 
 #include <data/file-name.h>
@@ -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));