(ds_read_line): Add argument to limit the length of the line to be
[pspp] / src / ui / terminal / read-line.c
index e72f11458ac4112ede5e78c701dfb8cb9b153960..1cd65c0ae73530f485fe1d3e6b835e28c6638d23 100644 (file)
@@ -173,7 +173,7 @@ readln_read (struct string *line, enum prompt_style style)
 #else
   fputs (prompt, stdout);
   fflush (stdout);
-  if (ds_read_line (line, stdin))
+  if (ds_read_line (line, stdin, SIZE_MAX))
     {
       ds_chomp (line, '\n');
       eof = false;