From 40cfb6124603363a1f62a6a0c04985ac39aebf8e Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 29 Jul 1999 09:13:03 +0000 Subject: Brendan Cully's latest IMAP patches. --- enter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'enter.c') 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 */ -- cgit v1.2.3