diff --git a/src/vte.c b/src/vte.c
index 60dea9b..9058af6 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -4593,7 +4593,7 @@ vte_terminal_io_read(GIOChannel *channel,
 		if (max_bytes) {
 			max_bytes = terminal->pvt->max_input_bytes / max_bytes;
 		} else {
-			max_bytes = VTE_MAX_INPUT_READ;
+			max_bytes = terminal->pvt->max_input_bytes;
 		}
 		bytes = terminal->pvt->input_bytes;
 
