summaryrefslogtreecommitdiffstats
path: root/enter.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-07-29 09:13:03 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-07-29 09:13:03 +0000
commit40cfb6124603363a1f62a6a0c04985ac39aebf8e (patch)
tree17e99a594345686a3994f19a8b075db99fd6b6f1 /enter.c
parent0744dc97d7ba45a938e6b2934703f93078c79eeb (diff)
Brendan Cully's latest IMAP patches.
Diffstat (limited to 'enter.c')
-rw-r--r--enter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enter.c b/enter.c
index 337bb0bd..239f7f84 100644
--- a/enter.c
+++ b/enter.c
@@ -326,7 +326,7 @@ int _mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x,
set_option (OPTNEEDREDRAW);
return (1);
}
- if (mutt_complete ((char *) buf + j + 1) == 0)
+ if (mutt_complete ((char *) buf + j + 1, buflen - (j + 1)) == 0)
strfcpy (tempbuf, (char *) buf + j + 1, sizeof (tempbuf));
else
BEEP ();
@@ -380,7 +380,7 @@ int _mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x,
return (-1);
}
- if (mutt_complete ((char *) buf) == 0)
+ if (mutt_complete ((char *) buf, buflen) == 0)
strfcpy (tempbuf, (char *) buf, sizeof (tempbuf));
else
BEEP (); /* let the user know that nothing matched */