summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/input.c b/src/input.c
index 851e23c..7d8dd40 100644
--- a/src/input.c
+++ b/src/input.c
@@ -527,7 +527,6 @@ get_more_input (char *prompt, char *preinput, int history_id,
{
/* Emacs 21 uses a 513 byte string to store the keysym name. */
char keysym_buf[513];
- int keysym_bufsize = sizeof (keysym_buf);
rp_screen *s = current_screen ();
KeySym ch;
unsigned int modifier;
@@ -562,10 +561,10 @@ get_more_input (char *prompt, char *preinput, int history_id,
for (;;)
{
- read_key (&ch, &modifier, keysym_buf, keysym_bufsize);
+ read_key (&ch, &modifier, keysym_buf, sizeof (keysym_buf));
modifier = x11_mask_to_rp_mask (modifier);
- PRINT_DEBUG (("ch = %ld, modifier = %d, keysym_buf = %s, keysym_bufsize = %d\n",
- ch, modifier, keysym_buf, keysym_bufsize));
+ PRINT_DEBUG (("ch = %ld, modifier = %d, keysym_buf = %s",
+ ch, modifier, keysym_buf));
status = execute_edit_action (line, ch, modifier, keysym_buf);
if (status == EDIT_DELETE || status == EDIT_INSERT || status == EDIT_MOVE