diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-29 09:13:03 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-29 09:13:03 +0000 |
commit | 40cfb6124603363a1f62a6a0c04985ac39aebf8e (patch) | |
tree | 17e99a594345686a3994f19a8b075db99fd6b6f1 /enter.c | |
parent | 0744dc97d7ba45a938e6b2934703f93078c79eeb (diff) |
Brendan Cully's latest IMAP patches.
Diffstat (limited to 'enter.c')
-rw-r--r-- | enter.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |