summaryrefslogtreecommitdiffstats
path: root/enter.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-01-08 16:33:57 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-01-08 16:33:57 +0000
commit0fc518a9da9ec8af36af17fbcb305cd6abd5d50e (patch)
treefce43e25d01652f5f10297023530c358fc730912 /enter.c
parent9fd7da6f29476ae9333723b6f58727b58d57661e (diff)
Going through possible security problems with a fine comb. If you
want to help, check out the current source, and run check_sec.sh.
Diffstat (limited to 'enter.c')
-rw-r--r--enter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enter.c b/enter.c
index 50dca39a..13a54c38 100644
--- a/enter.c
+++ b/enter.c
@@ -443,7 +443,7 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x,
{
first = 1; /* clear input if user types a real key later */
my_wcstombs (buf, buflen, state->wbuf, state->curpos);
- mutt_buffy (buf);
+ mutt_buffy (buf, buflen);
state->curpos = state->lastchar = my_mbstowcs (&state->wbuf, &state->wbuflen, 0, buf);
break;
}