Merge commit 'origin/stable'
[pspp-builds.git] / src / ui / terminal / read-line.c
index e72f11458ac4112ede5e78c701dfb8cb9b153960..7b23f38d2f359b58ecec1635970904d732edad5c 100644 (file)
@@ -22,6 +22,9 @@
 #include <stdbool.h>
 #include <assert.h>
 #include <errno.h>
+#if ! HAVE_READLINE
+#include <stdint.h>
+#endif
 
 #include "msg-ui.h"
 
@@ -173,7 +176,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;