diff --git a/ChangeLog b/ChangeLog
index 4631dab8c79987bb638c1582e9fc01f1d41ffe6e..5e0ff29c95d456479b1a6798cc7ff06f74434994 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -190,6 +190,9 @@ CVS code -
 	  new first parameter to the first character of the sequence
 	  instead of putting that character back and reading the entire
 	  sequence afterwards. (DLR)
+  get_escape_seq_kbinput()
+	- Make the escape_seq parameter a const int*, since it's never
+	  modified. (DLR)
   get_verbatim_kbinput()
 	- Add new parameter first.  If first isn't ERR, make it the
 	  first character in the returned sequence instead of reading
diff --git a/src/proto.h b/src/proto.h
index c88e45d8a19db3da7f7ba6252adf5e6acc26623d..eb0653755e1eeccd337ae1aaeea4863126f86d84 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -516,7 +516,7 @@ int get_ascii_kbinput(int kbinput, size_t ascii_digits
 #endif
 	);
 int get_control_kbinput(int kbinput);
-int get_escape_seq_kbinput(int *escape_seq, size_t es_len, bool
+int get_escape_seq_kbinput(const int *escape_seq, size_t es_len, bool
 	*ignore_seq);
 int get_escape_seq_abcd(int kbinput);
 int *get_verbatim_kbinput(WINDOW *win, int first, int *v_kbinput, size_t
diff --git a/src/winio.c b/src/winio.c
index 5282369cd75686047139b8f57f6fa049f7f8e35c..935197c1a6ecfba81b0c71fe1c8217d2216b0d95 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -581,7 +581,7 @@ int get_control_kbinput(int kbinput)
  * ERR and set ignore_seq to TRUE; if it's unrecognized, return ERR and
  * set ignore_seq to FALSE.  Assume that Escape has already been read
  * in. */
-int get_escape_seq_kbinput(int *escape_seq, size_t es_len, bool
+int get_escape_seq_kbinput(const int *escape_seq, size_t es_len, bool
 	*ignore_seq)
 {
     int retval = ERR;